/** * Tests that matches() will forward calls to evaluate() */ public function testMatchesCallsForwarded() { $this->constraint->expects($this->once())->method('evaluate')->with($this->equalTo('foo'))->will($this->returnValue(true)); $value = array('foo'); $this->assertNull($this->adapter->doArgumentsMatch($value)); }