feat: custom eventually assertion

This commit is contained in:
loks0n
2024-02-25 16:37:31 +00:00
parent 5bc6018c7c
commit b3fc8eb510
2 changed files with 68 additions and 0 deletions
+14
View File
@@ -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));
}
}