diff --git a/.travis.yml b/.travis.yml index abcd2bc..0c7640f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ before_script: - composer self-update - composer install - cp phpunit.xml.dist phpunit.xml + - php -S localhost:8000 > /dev/null 2>&1 & script: - vendor/phing/phing/bin/phing -f build.xml diff --git a/tests/BeSimple/SoapClient/SoapClientTest.php b/tests/BeSimple/SoapClient/SoapClientTest.php index defa714..cc4652f 100644 --- a/tests/BeSimple/SoapClient/SoapClientTest.php +++ b/tests/BeSimple/SoapClient/SoapClientTest.php @@ -75,7 +75,7 @@ class SoapClientTest extends PHPUnit_Framework_TestCase public function testSoapCallWithCustomEndpointInvalidShouldFail() { - $this->setExpectedException(Exception::class, 'Could not resolve host'); + $this->setExpectedException(Exception::class, 't resolve host'); $soapClient = $this->getSoapBuilder()->build( SoapClientOptionsBuilder::createWithEndpointLocation(self::TEST_REMOTE_ENDPOINT_NOT_WORKING), diff --git a/tests/BeSimple/SoapServerAndSoapClientCommunicationSoapFaultsTest.php b/tests/BeSimple/SoapServerAndSoapClientCommunicationSoapFaultsTest.php index f5366ff..dacd307 100644 --- a/tests/BeSimple/SoapServerAndSoapClientCommunicationSoapFaultsTest.php +++ b/tests/BeSimple/SoapServerAndSoapClientCommunicationSoapFaultsTest.php @@ -36,7 +36,7 @@ class SoapServerAndSoapClientCommunicationSoapFaultsTest extends PHPUnit_Framewo public function testSoapCallSwaWithLargeSwaResponseWithSoapFault() { - $soapClient = $this->getSoapBuilder()->buildWithSoapHeader( + $soapClient = $this->getSoapClientBuilder()->buildWithSoapHeader( SoapClientOptionsBuilder::createWithEndpointLocation( self::TEST_HTTP_URL.'/SwaSenderSoapFaultEndpoint.php' ), @@ -91,7 +91,7 @@ class SoapServerAndSoapClientCommunicationSoapFaultsTest extends PHPUnit_Framewo public function testSoapCallSwaWithLargeSwaResponseWithNoResponseFromEndpoint() { - $soapClient = $this->getSoapBuilder()->buildWithSoapHeader( + $soapClient = $this->getSoapClientBuilder()->buildWithSoapHeader( SoapClientOptionsBuilder::createWithEndpointLocation( self::TEST_HTTP_URL.'/NoSuchEndpointExists' ), @@ -150,7 +150,7 @@ class SoapServerAndSoapClientCommunicationSoapFaultsTest extends PHPUnit_Framewo public function testSoapCallSwaWithLargeSwaResponseWithNoResponseFromEndpointHost() { - $soapClient = $this->getSoapBuilder()->buildWithSoapHeader( + $soapClient = $this->getSoapClientBuilder()->buildWithSoapHeader( SoapClientOptionsBuilder::createWithEndpointLocation( self::TEST_HTTP_URL_INVALID.'/NoSuchEndpointExists' ), @@ -181,7 +181,7 @@ class SoapServerAndSoapClientCommunicationSoapFaultsTest extends PHPUnit_Framewo $e->faultcode ); self::assertContains( - 'Could not resolve host', + 't resolve host', $e->getMessage() ); self::assertNull( @@ -204,7 +204,7 @@ class SoapServerAndSoapClientCommunicationSoapFaultsTest extends PHPUnit_Framewo self::fail('Expected SoapFault was not thrown'); } - private function getSoapBuilder() + private function getSoapClientBuilder() { return new SoapClientBuilder(); }