diff --git a/example/xml/consumer/tests/Service/HttpClientServiceTest.php b/example/xml/consumer/tests/Service/HttpClientServiceTest.php index 853eb11e..c4e31582 100644 --- a/example/xml/consumer/tests/Service/HttpClientServiceTest.php +++ b/example/xml/consumer/tests/Service/HttpClientServiceTest.php @@ -2,7 +2,6 @@ namespace XmlConsumer\Tests\Service; -use Tienvx\PactPhpXml\Model\Options; use Tienvx\PactPhpXml\XmlBuilder; use XmlConsumer\Service\HttpClientService; use PhpPact\Consumer\InteractionBuilder; diff --git a/example/xml/provider/tests/PactVerifyTest.php b/example/xml/provider/tests/PactVerifyTest.php index 82a64982..925afc4c 100644 --- a/example/xml/provider/tests/PactVerifyTest.php +++ b/example/xml/provider/tests/PactVerifyTest.php @@ -1,34 +1,24 @@ process = new Process(['php', '-S', '127.0.0.1:7202', '-t', __DIR__ . '/../public/']); - + $this->process = new ProviderProcess(__DIR__ . '/../public/'); $this->process->start(); - $this->process->waitUntil(function (): bool { - $fp = @fsockopen('127.0.0.1', 7202); - $isOpen = is_resource($fp); - if ($isOpen) { - fclose($fp); - } - - return $isOpen; - }); } /** diff --git a/phpunit.xml b/phpunit.xml index f82b56e4..e37d500c 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -31,6 +31,12 @@ ./example/multipart/provider/tests + + ./example/xml/consumer/tests + + + ./example/xml/provider/tests + ./example/message/consumer/tests