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