public function saySomethingSmart()
{
return parent::saySomethingSmart() . ' That was smart, eh?';
}
/** * @test */ public function anAdvicedParentMethodIsCalledCorrectlyIfANonAdvicedOverridingMethodCallsIt() { $targetClass = new Fixtures\ChildClassOfTargetClass01(); $this->assertEquals('Two plus two makes five! For big twos and small fives! That was smart, eh?', $targetClass->saySomethingSmart()); }