public function testIsValidTrue() { $response = $this->getMock('Saml\\Ecp\\Response\\ResponseInterface'); $validator1 = $this->getMock('Saml\\Ecp\\Response\\Validator\\ValidatorInterface'); $validator1->expects($this->once())->method('isValid')->with($response)->will($this->returnValue(true)); $validator2 = $this->getMock('Saml\\Ecp\\Response\\Validator\\ValidatorInterface'); $validator2->expects($this->once())->method('isValid')->with($response)->will($this->returnValue(true)); $this->_chain->addValidator($validator1); $this->_chain->addValidator($validator2); $this->assertTrue($this->_chain->isValid($response)); }