public function testApiRead_ThrowsException_WhenReadWasNotSuccessful()
{
$path = 'path';
$ex = null;
$this->expect('read', [$path])->willReturn(false);
try {
$this->fs->read($path);
} catch (Exception $ex) {
}
$this->assertInstanceOf(ReadException::class, $ex);
$this->assertSame(null, $ex->getPrevious());
}