fkooman\RemoteStorage\RemoteStorageServiceTest::testGetDocument PHP Method

testGetDocument() public method

public testGetDocument ( )
    public function testGetDocument()
    {
        $request = $this->getPutRequest('/admin/foo/bar/baz.txt');
        $response = $this->r->run($request);
        $this->assertSame(array('HTTP/1.1 200 OK', 'Content-Type: text/html;charset=UTF-8', 'Etag: "1:2"', 'Content-Length: 0', 'Access-Control-Allow-Origin: *', 'Access-Control-Expose-Headers: ETag, Content-Length', '', null), $response->toArray());
        $request = $this->getGetRequest('/admin/foo/bar/baz.txt');
        $response = $this->r->run($request);
        $this->assertSame(array('HTTP/1.1 200 OK', 'Content-Type: text/plain', 'Etag: "1:2"', 'Accept-Ranges: bytes', sprintf('X-Sendfile: %s/admin/foo/bar/baz.txt', $this->tempFile), 'Expires: 0', 'Cache-Control: no-cache', 'Access-Control-Allow-Origin: *', 'Access-Control-Expose-Headers: ETag, Content-Length', '', ''), $response->toArray());
    }