noPath() public static method

Returns basename(value).
public static noPath ( mixed $value ) : mixed
$value mixed
return mixed
Beispiel #1
0
 /**
  *
  */
 public function testNoPath()
 {
     $input = './../../../../../../../../../etc/passwd';
     $expect = 'passwd';
     $this->assertSame($expect, Inspekt::noPath($input));
 }