public function testApiExists_ThrowsException_WhenModelHasThrowsException() { $this->setExpectedException(ReadException::class); $this->expect('has', ['path'])->willThrow(new Exception()); $this->fs->exists('path'); }