Errogerinna
New Member
I have code like this inside my unit test:\[code\]// $item_id was defined above$originalMock = $this->getMock( 'Item', array( 'foo' ), array( $item_id));$originalMock->expects( $this->once() )->method( 'foo' );$originalMock->functionThatCallsFoo();\[/code\]It is saying I'm not calling \[code\]foo\[/code\] at all, even though \[code\]functionThatCallsFoo\[/code\] & \[code\]foo\[/code\] are var_dumping out from within. There are several function calls between the publicly called function and the one I'm expecting. I made sure there are no static functions called down the chain. ( There were originally but I changed them to see if I can get this working at all )EDITI changed my \[code\]expects\[/code\] call to match the method directly called from \[code\]functionThatCallsFoo\[/code\] and it still did not work.