TestFileSystemStream::setError PHP Method

setError() public static method

Sets error type.
public static setError ( integer $error )
$error integer Error type
    public static function setError($error)
    {
        self::$error = (int) $error;
    }

Usage Example

Example #1
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());
 }