2018-11-29 02:16:21 +01:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2019-02-09 11:44:33 +01:00
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-11-29 02:16:21 +01:00
|
|
|
require 'vendor/autoload.php';
|
|
|
|
|
|
|
|
use Respect\Validation\Validator as v;
|
|
|
|
|
2023-04-01 07:20:05 +02:00
|
|
|
exceptionMessage(static fn() => v::symbolicLink()->check('tests/fixtures/fake-filename'));
|
|
|
|
exceptionMessage(static fn() => v::not(v::symbolicLink())->check('tests/fixtures/symbolic-link'));
|
|
|
|
exceptionFullMessage(static fn() => v::symbolicLink()->assert('tests/fixtures/fake-filename'));
|
|
|
|
exceptionFullMessage(static fn() => v::not(v::symbolicLink())->assert('tests/fixtures/symbolic-link'));
|
2018-11-29 02:16:21 +01:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
"tests/fixtures/fake-filename" must be a symbolic link
|
|
|
|
"tests/fixtures/symbolic-link" must not be a symbolic link
|
|
|
|
- "tests/fixtures/fake-filename" must be a symbolic link
|
|
|
|
- "tests/fixtures/symbolic-link" must not be a symbolic link
|