1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00

Use dedicated PHPUnit assertions

This commit is contained in:
Gabriel Caruso 2018-11-12 18:04:12 -02:00 committed by Niklas Keller
parent c4faf1f347
commit 6be5d4bfc5
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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);
}