예제 #1
0
파일: FileTest.php 프로젝트: naucon/file
 /**
  * @depends     testExist
  * @return      void
  */
 public function testMkdir()
 {
     $filePath = __DIR__ . '/tmp/foo';
     if (is_dir($filePath)) {
         $this->markTestSkipped();
     } else {
         $fileObject = new File($filePath);
         $this->assertTrue($fileObject->mkdir());
         $this->assertTrue($fileObject->isReadable());
         $this->assertTrue($fileObject->isWritable());
         $mode = 0777;
         $filePath = __DIR__ . '/tmp/foo/lv1/';
         $fileObject = new File($filePath);
         $this->assertTrue($fileObject->mkdir($mode));
         $this->assertTrue($fileObject->isReadable());
         $this->assertTrue($fileObject->isWritable());
     }
 }