public function testFromNonDirectoryWithNonExistingPath()
{
$directory = uniqid(sys_get_temp_dir() . 'non-existing', true);
$exception = InvalidDirectory::fromNonDirectory($directory);
self::assertInstanceOf(InvalidDirectory::class, $exception);
self::assertSame(sprintf('"%s" does not exists', $directory), $exception->getMessage());
}