Skip to content
Snippets Groups Projects
Commit db042d0a authored by Fabien Potencier's avatar Fabien Potencier
Browse files

Merge branch '5.4' into 6.4

* 5.4:
  Revert bumping contract version
  stop all server processes after tests have run
parents f121b5a2 f1f0736d
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,12 @@ abstract class HttpClientTestCase extends TestCase
TestHttpServer::start();
}
public static function tearDownAfterClass(): void
{
TestHttpServer::stop(8067);
TestHttpServer::stop(8077);
}
abstract protected function getHttpClient(string $testCase): HttpClientInterface;
public function testGetRequest()
......
......@@ -45,4 +45,11 @@ class TestHttpServer
return $process;
}
public static function stop(int $port = 8057)
{
if (isset(self::$process[$port])) {
self::$process[$port]->stop();
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment