Phalcon\Test\Unit\Mvc\UrlTest::testUrlWithColons PHP Метод

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

Test urls that contains colons in schema definition and as parameter
С версии: 2016-05-07
Автор: Anton Melnik ([email protected])
public testUrlWithColons ( )
    public function testUrlWithColons()
    {
        $this->specify("URL with colon is not correct", function () {
            $di = $this->setupDI();
            $url = new Url();
            $url->setBaseUri('http://www.test.com');
            expect($url->get("/controller/action/param/colon:param"))->equals("http://www.test.com/controller/action/param/colon:param");
            expect($url->get("http://www.example.com"))->equals('http://www.example.com');
            expect($url->get("//www.example.com"))->equals('//www.example.com');
            expect($url->get("schema:example.com"))->equals('schema:example.com');
        });
    }