diff --git a/test/Loop/DriverTest.php b/test/Loop/DriverTest.php index 7c14c05..73130a1 100644 --- a/test/Loop/DriverTest.php +++ b/test/Loop/DriverTest.php @@ -1307,7 +1307,7 @@ abstract class DriverTest extends TestCase $loop->stop(); }); }); - $this->assertTrue($t + 0.1 > \microtime(1)); + $this->assertGreaterThan(\microtime(1), $t + 0.1); } public function testDeferEnabledInNextTick() diff --git a/test/PromiseTest.php b/test/PromiseTest.php index 75faa86..f1a165e 100644 --- a/test/PromiseTest.php +++ b/test/PromiseTest.php @@ -227,7 +227,7 @@ class PromiseTest extends \PHPUnit\Framework\TestCase if (!$ex) { $promise->onResolve(function ($e, $v) use (&$invoked) { $invoked = true; - $this->assertFalse($v instanceof Promise); + $this->assertNotInstanceOf(Promise::class, $v); }); $this->assertTrue($invoked); }