From a0abd4930ad453bdf98f8837a2fb298d5b7ed7b9 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Tue, 30 Mar 2021 21:52:43 +0200 Subject: [PATCH] Revert to previous assertion to accept false and empty string --- test/ProcessTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ProcessTest.php b/test/ProcessTest.php index a0134be..774cece 100644 --- a/test/ProcessTest.php +++ b/test/ProcessTest.php @@ -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)); }); }