1
0
mirror of https://github.com/danog/process.git synced 2024-11-30 04:39:04 +01:00

Revert to previous assertion to accept false and empty string

This commit is contained in:
Niklas Keller 2021-03-30 21:52:43 +02:00
parent 37f75c10c4
commit a0abd4930a

View File

@ -362,7 +362,7 @@ class ProcessTest extends TestCase
});
}
public function testKillPHPImmediatly()
public function testKillPHPImmediately()
{
Loop::run(function () {
$socket = \stream_socket_server("tcp://0.0.0.0:10000", $errno, $errstr);
@ -372,7 +372,7 @@ class ProcessTest extends TestCase
$conn = \stream_socket_accept($socket);
$this->assertSame('start', \fread($conn, 5));
$process->kill();
$this->assertSame('', \fread($conn, 3));
$this->assertEmpty(\fread($conn, 3));
});
}