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