setError() public static method

Sets error type.
public static setError ( integer $error )
$error integer Error type
Exemplo n.º 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());
 }