mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
16 lines
432 B
PHP
16 lines
432 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\ExpectationFailedException;
|
|
|
|
test('pass', function () {
|
|
expect(sys_get_temp_dir())->toBeWritableDirectory();
|
|
});
|
|
|
|
test('failures', function () {
|
|
expect('/random/path/whatever')->toBeWritableDirectory();
|
|
})->throws(ExpectationFailedException::class);
|
|
|
|
test('not failures', function () {
|
|
expect(sys_get_temp_dir())->not->toBeWritableDirectory();
|
|
})->throws(ExpectationFailedException::class);
|