mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 10:17:23 +01:00
tests(expectations): fix method in test file
This commit is contained in:
@ -3,13 +3,13 @@
|
|||||||
use PHPUnit\Framework\ExpectationFailedException;
|
use PHPUnit\Framework\ExpectationFailedException;
|
||||||
|
|
||||||
test('pass', function () {
|
test('pass', function () {
|
||||||
expect(sys_get_temp_dir())->toBeWritableDirectory();
|
expect(sys_get_temp_dir())->toBeReadableDirectory();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('failures', function () {
|
test('failures', function () {
|
||||||
expect('/random/path/whatever')->toBeWritableDirectory();
|
expect('/random/path/whatever')->toBeReadableDirectory();
|
||||||
})->throws(ExpectationFailedException::class);
|
})->throws(ExpectationFailedException::class);
|
||||||
|
|
||||||
test('not failures', function () {
|
test('not failures', function () {
|
||||||
expect(sys_get_temp_dir())->not->toBeWritableDirectory();
|
expect(sys_get_temp_dir())->not->toBeReadableDirectory();
|
||||||
})->throws(ExpectationFailedException::class);
|
})->throws(ExpectationFailedException::class);
|
||||||
|
|||||||
Reference in New Issue
Block a user