public function testSignedByDelegatesToCert() { $cert = $this->getMockCert(); $cert->expects($this->once())->method('hasSigned')->will($this->returnValue(true)); $response = new Response($this->getResponseBer()); $this->assertTrue($response->isSignedBy($cert)); }