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

testPatchWithJson() public method

public testPatchWithJson ( )
    public function testPatchWithJson()
    {
        $http = new Service($this->_testConfig);
        $response = $http->patch('some-path/stuff', array('someData' => 'someValue'), array('return' => 'response', 'type' => 'json'));
        $result = $http->last->request;
        $this->assertEqual('{"someData":"someValue"}', $result->body());
        $this->assertEqual('application/json', $result->headers['Content-Type']);
    }