Jyxo\Beholder\TestCase\FileSystemTest::testReadFailure PHP Method

testReadFailure() public method

Tests read failure.
public testReadFailure ( )
    public function testReadFailure()
    {
        \TestFileSystemStream::setError(\TestFileSystemStream::ERROR_READ);
        $test = new FileSystem('FileSystem', $this->dir);
        $result = $test->run();
        $this->assertEquals(\Jyxo\Beholder\Result::FAILURE, $result->getStatus());
        $this->assertEquals(sprintf('Read error %s', $this->dir), $result->getDescription());
    }