sayHelloAndThrow() public method

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