fkooman\RemoteStorage\RemoteStorageServiceTest::testGetSameVersionDocument PHP Метод

testGetSameVersionDocument() публичный Метод

    public function testGetSameVersionDocument()
    {
        $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', array('If-None-Match' => '"1:2"'));
        $response = $this->r->run($request);
        $this->assertSame(array('HTTP/1.1 304 Not Modified', 'Content-Type: text/plain', 'Etag: "1:2"', 'Expires: 0', 'Cache-Control: no-cache', 'Access-Control-Allow-Origin: *', 'Access-Control-Expose-Headers: ETag, Content-Length', '', ''), $response->toArray());
    }