/** * @test */ public function adviceRecoversFromException() { $targetClass = new Fixtures\TargetClass01(); try { $targetClass->sayHelloAndThrow(true); } catch (\Exception $exception) { } $this->assertSame('Hello World', $targetClass->sayHelloAndThrow(false)); }