Omnipay\Common\Message\AbstractResponseTest::testConstruct PHP Method

testConstruct() public method

public testConstruct ( )
    public function testConstruct()
    {
        $data = array('foo' => 'bar');
        $request = $this->getMockRequest();
        $this->response = m::mock('\\Omnipay\\Common\\Message\\AbstractResponse', array($request, $data))->makePartial();
        $this->assertSame($request, $this->response->getRequest());
        $this->assertSame($data, $this->response->getData());
    }