/** * Testing when case add method */ public function testWhenCaseAddMethod() { $mock = ShortifyPunit::mock('Foo'); $whenCase = new WhenCase(get_class($mock), $mock->getShortifyPunitInstanceId()); $whenCase->bar(array())->returns(array()); }