Skip to content

Commit db042d0

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: Revert bumping contract version stop all server processes after tests have run
2 parents f121b5a + f1f0736 commit db042d0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

HttpClient/Test/HttpClientTestCase.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ public static function setUpBeforeClass(): void
2828
TestHttpServer::start();
2929
}
3030

31+
public static function tearDownAfterClass(): void
32+
{
33+
TestHttpServer::stop(8067);
34+
TestHttpServer::stop(8077);
35+
}
36+
3137
abstract protected function getHttpClient(string $testCase): HttpClientInterface;
3238

3339
public function testGetRequest()

HttpClient/Test/TestHttpServer.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,11 @@ public static function start(int $port = 8057/* , string $workingDirectory = nul
4545

4646
return $process;
4747
}
48+
49+
public static function stop(int $port = 8057)
50+
{
51+
if (isset(self::$process[$port])) {
52+
self::$process[$port]->stop();
53+
}
54+
}
4855
}

0 commit comments

Comments
 (0)