Skip to content

Commit b6b5c87

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 b19a711 + e5cc97c commit b6b5c87

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

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()

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy