lithium\tests\cases\net\http\ServiceTest::testPatchMethod PHP Method

testPatchMethod() public method

public testPatchMethod ( )
    public function testPatchMethod()
    {
        $http = new Service($this->_testConfig);
        $response = $http->patch('some-path/stuff', array('someData' => 'someValue'), array('return' => 'response'));
        $result = $http->last->request;
        $this->assertEqual('PATCH', $result->method);
        $this->assertEqual('lithium\\net\\http\\Response', get_class($response));
        $this->assertEqual('someData=someValue', $result->body());
    }