示例#1
0
 /**
  * @test
  */
 public function testIsWriteable()
 {
     $file = new Filesystem();
     $dir = static::getTempPath(__FUNCTION__);
     mkdir($dir);
     $filename = rand(1, 10) . rand(0, getrandmax());
     $path = $dir . DIRECTORY_SEPARATOR . $filename;
     touch($path);
     $this->assertEquals(true, $file->isWriteable($path));
 }