mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
feat: custom eventually assertion
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Appwrite\Tests;
|
||||
|
||||
use PHPUnit\Framework\Assert;
|
||||
use Appwrite\Tests\Async\Eventually;
|
||||
|
||||
trait Async
|
||||
{
|
||||
public static function assertEventually(callable $probe, int $timeoutMilliseconds = 10000, int $waitMilliseconds = 500): void
|
||||
{
|
||||
Assert::assertThat($probe, new Eventually($timeoutMilliseconds, $waitMilliseconds));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user