示例#1
0
 /**
  * Sets error type.
  *
  * @param integer $error Error type
  */
 public static function setError($error)
 {
     self::$error = (int) $error;
 }
示例#2
0
 /**
  * Tests all functions.
  */
 public function testAllOk()
 {
     \TestFileSystemStream::setError(\TestFileSystemStream::ERROR_NONE);
     $test = new FileSystem('FileSystem', $this->dir);
     $result = $test->run();
     $this->assertEquals(\Jyxo\Beholder\Result::SUCCESS, $result->getStatus());
     $this->assertEquals($this->dir, $result->getDescription());
 }