public function testApiConstructor_CreatesInstance_WhenErrorPassed()
{
$ex = new Error($message = 'Error');
$proxy = $this->createThrowableProxy($ex);
$this->assertInstanceOf(Error::class, $proxy->toThrowable());
$this->assertSame($message, $proxy->toThrowable()->getMessage());
}