/** * Sets error type. * * @param integer $error Error type */ public static function setError($error) { self::$error = (int) $error; }
/** * 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()); }