assertFalse($wrapper->isSucceeded()); } public function testIsFailed(): void { $wrapper = new WrappedException(new \Exception('foo')); $this->assertTrue($wrapper->isFailed()); } public function testGetResult(): void { $exception = new \Exception('bar'); $wrapper = new WrappedException($exception); $this->expectExceptionObject($exception); $wrapper->getResult(); } public function testGetException(): void { $exception = new \Exception('bar'); $wrapper = new WrappedException($exception); $e = $wrapper->getException(); $this->assertSame($exception, $e); } }