Exemplo n.º 1
0
 public function testCreateStatAndRemoveDir()
 {
     $path = $this->tmpDir . '/a_dir';
     // Check
     $this->assertFalse($this->sftp->stat($path));
     // Create
     $this->assertTrue($this->sftp->mkdir($path));
     //var_dump($this->sftp->stat($path)); die();
     $this->assertEquals(array(7, 'size', 4, 'uid', 5, 'gid', 2, 'mode', 8, 'atime', 9, 'mtime'), array_keys($this->sftp->stat($path)));
     // Remove
     $this->assertTrue($this->sftp->rmdir($path));
     $this->assertFalse($this->sftp->stat($path));
 }