Example #1
0
 /**
  * @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());
     }
 }