JBZoo\Utils\FS::isReal PHP Method

isReal() public static method

public static isReal ( $path ) : boolean
$path
return boolean
    public static function isReal($path)
    {
        $expected = self::clean(self::real($path));
        $actual = self::clean($path);
        return $expected === $actual;
    }

Usage Example

コード例 #1
0
ファイル: FileSystemTest.php プロジェクト: jbzoo/utils
 public function testIsReal()
 {
     isTrue(FS::isReal(__FILE__));
     isFalse(FS::isReal(__DIR__ . '/../'));
 }