/** * Tests resetting a stub mapper */ public function testRemoveAllAnswers() { $matcher = $this->getMock('Phake_Matchers_MethodMatcher', array(), array(), '', false); $stub = $this->getMock('Phake_Stubber_AnswerCollection', array(), array(), '', false); $matcher->expects($this->never())->method('matches'); $this->mapper->mapStubToMatcher($stub, $matcher); $this->mapper->removeAllAnswers(); $arguments = array('bar', 'test'); $this->assertNull($this->mapper->getStubByCall('foo', $arguments)); }