/** * */ public function testCallReturnsNullIfArgumentsMatch() { $method = new MockedMethod('foo', new ArgumentCollection(array('foo')), new Any()); $this->assertNull($method->call(new ArgumentCollection(array('foo')))); $method->verify(); }
/** * @param ArgumentCollection $actualArgs * @throws \Mokka\VerificationException * @return null */ public function call(ArgumentCollection $actualArgs) { parent::call($actualArgs); return $this->_returnValue; }