OSS\Tests\CopyObjectResultTest::testOkResponse PHP Method

testOkResponse() public method

public testOkResponse ( )
    public function testOkResponse()
    {
        $header = array();
        $response = new ResponseCore($header, $this->body, 200);
        $result = new CopyObjectResult($response);
        $data = $result->getData();
        $this->assertTrue($result->isOK());
        $this->assertEquals("Fri, 24 Feb 2012 07:18:48 GMT", $data[0]);
        $this->assertEquals("\"5B3C1A2E053D763E1B002CC607C5A0FE\"", $data[1]);
    }