Ejemplo n.º 1
0
 /**
  * @test
  */
 public function testTouchWithoutOwnerSet()
 {
     $file = new Filesystem();
     $dir_path = static::getTempPath(__FUNCTION__);
     $this->assertFileExists($dir_path, $file->touchWithoutOwnerSet($dir_path));
     $file_owner = $file->getFileOwnerName($dir_path);
     $file->touchWithoutOwnerSet($dir_path);
     $file_owner2 = $file->getFileOwnerName($dir_path);
     $this->assertEquals($file_owner, $file_owner2);
 }