mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
15 lines
353 B
PHP
15 lines
353 B
PHP
<?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));
|
|
}
|
|
}
|