/** * */ public function testCallReturnsExpectedReturnValueIfArgumentsMatch() { $arguments = new ArgumentCollection(array('foo')); $method = new StubbedMethod('foo', $arguments, 'bar'); $this->assertEquals('bar', $method->call(new ArgumentCollection(array('foo')))); }
/** * @param ArgumentCollection $actualArgs * @return null|void * @throws \Exception */ public function call(ArgumentCollection $actualArgs) { parent::call($actualArgs); throw $this->_exception; }