Integration test fixed

This commit is contained in:
Petr Bechyně
2018-02-06 00:31:06 +01:00
parent e6beef5a80
commit 45cce3a41c
4 changed files with 98 additions and 5 deletions

13
tests/SwaEndpoint.php Normal file
View File

@ -0,0 +1,13 @@
<?php
const FIXTURES_DIR = __DIR__.'/Fixtures';
const CACHE_DIR = __DIR__.'/../cache';
if (isset($_GET['wsdl'])) {
header('Content-type: text/xml');
echo file_get_contents(FIXTURES_DIR.'/Message/Response/soapCallWithSwaAttachmentsOnResponse.wsdl');
exit;
}
header('Content-type: text/xml');
echo file_get_contents(FIXTURES_DIR.'/Message/Response/soapCallWithSwaAttachmentsOnResponse.response.message');