Esempio n. 1
0
 /**
  * @covers mychaelstyle\storage\providers\Local::remove
  * @covers mychaelstyle\storage\providers\Local::removeDir
  * @covers mychaelstyle\storage\providers\Local::getRealPath
  * @expectedException mychaelstyle\Exception
  */
 public function testRemoveExceptionPermissionRecursive()
 {
     clearstatcache();
     $putUri = '/t2dir/child/put.txt';
     $expectedPath = DIR_WORK . $putUri;
     $this->connect();
     $this->object->put($this->org_example, $putUri);
     $this->assertTrue(file_exists($expectedPath));
     $tcd = dirname($expectedPath);
     $td = dirname($tcd);
     $tcd2 = $td . '/test';
     mkdir($tcd2, 00);
     chmod($tcd2, 00);
     $this->object->remove('/t2dir', true);
     $this->assertFalse(is_dir($td));
 }