magicai / tests /Expectations.php
Softin Trading
Initial commit from Github
5f32fbd
Raw History Blame Contribute Delete
549 Bytes
<?php
declare(strict_types=1);
expect()->extend('seeHtml', function ($values): Pest\Expectation|ExpectationsInterface {
test()->assertSeeHtml($this->value, $values);
return $this;
});
expect()->extend('dontSeeHtml', function ($values): Pest\Expectation|ExpectationsInterface {
test()->assertDontSeeHtml($this->value, $values);
return $this;
});
expect()->extend('seeHtmlInOrder', function (array $values): Pest\Expectation|ExpectationsInterface {
test()->assertSeeHtmlInOrder($this->value, $values);
return $this;
});