tests(expectations): fix method in test file

This commit is contained in:
Owen Voke
2020-08-12 12:51:35 +01:00
parent 50cd1056eb
commit e1fbf56f3d

View File

@ -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);