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

testMagicMethod() public method

public testMagicMethod ( )
    public function testMagicMethod()
    {
        $http = new Service($this->_testConfig);
        $response = $http->magic('some-path/stuff');
        $expected = "http://localhost:80/some-path/stuff";
        $result = $http->last->request;
        $this->assertEqual($expected, $result->to('url'));
        $this->assertEqual('MAGIC', $result->method);
    }