isSucceeded()); } public function testIsFailed(): void { $wrapper = new WrappedResult('hello'); self::assertFalse($wrapper->isFailed()); } public function testGetResult(): void { $wrapper = new WrappedResult('hello'); self::assertSame('hello', $wrapper->getResult()); } public function testGetException(): void { $wrapper = new WrappedResult('hello'); $this->expectException(InvariantViolationException::class); $this->expectExceptionMessage('No exception thrown'); $wrapper->getException(); } }