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:
parent
c4faf1f347
commit
6be5d4bfc5
@ -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()
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user