Exemplo n.º 1
0
 public function testRealpath()
 {
     // Will work.
     $this->assertEquals('/etc/hosts', $this->sftp->realpath('/usr//../../../../etc//hosts'));
     // This should not work.
     $this->assertEquals(false, $this->sftp->realpath('/foo/bar//../../../../etc//hosts'));
 }