lithium\tests\cases\data\source\HttpTest::testUpdate PHP Метод

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

public testUpdate ( )
    public function testUpdate()
    {
        $http = new Http($this->_testConfig);
        $result = $http->update(null);
        $expected = join("\r\n", array('PUT / HTTP/1.1', 'Host: localhost:80', 'Connection: Close', 'User-Agent: Mozilla/5.0', 'Content-Type: application/x-www-form-urlencoded', 'Content-Length: 0', '', ''));
        $result = (string) $http->last->request;
        $this->assertEqual($expected, $result);
    }