mirror of
https://github.com/danog/process.git
synced 2024-12-02 09:37:55 +01:00
Revert to previous assertion to accept false and empty string
This commit is contained in:
parent
37f75c10c4
commit
a0abd4930a
@ -362,7 +362,7 @@ class ProcessTest extends TestCase
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testKillPHPImmediatly()
|
public function testKillPHPImmediately()
|
||||||
{
|
{
|
||||||
Loop::run(function () {
|
Loop::run(function () {
|
||||||
$socket = \stream_socket_server("tcp://0.0.0.0:10000", $errno, $errstr);
|
$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);
|
$conn = \stream_socket_accept($socket);
|
||||||
$this->assertSame('start', \fread($conn, 5));
|
$this->assertSame('start', \fread($conn, 5));
|
||||||
$process->kill();
|
$process->kill();
|
||||||
$this->assertSame('', \fread($conn, 3));
|
$this->assertEmpty(\fread($conn, 3));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user