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

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

public testCustomGetMethod ( )
    public function testCustomGetMethod()
    {
        $config = $this->_testConfig + array('methods' => array('something' => array('method' => 'get', 'path' => '/something')));
        $http = new Http($config);
        $result = $http->something();
        $expected = join("\r\n", array('GET /something HTTP/1.1', 'Host: localhost:80', 'Connection: Close', 'User-Agent: Mozilla/5.0', '', ''));
        $result = (string) $http->last->request;
        $this->assertEqual($expected, $result);
    }