public function testAssertPreviousMatcherThrowsInvalidException() { $this->setExpectedException('InvalidArgumentException', 'Other matchers cannot be passed with any ' . 'parameters. It will not work the way you think it works'); $this->matcher->assertPreviousMatcher(Phake::mock('Phake_Matchers_IChainableArgumentMatcher')); }
public function testSetNextThrowsInvalidException() { $this->setExpectedException('InvalidArgumentException', 'Other matchers cannot be checked after you ignore remaining parameters.'); $this->matcher->setNextMatcher(Phake::mock('Phake_Matchers_IChainableArgumentMatcher')); }