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

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

Tests a different url
С версии: 2014-09-04
Автор: Nikolaos Dimopoulos ([email protected])
public testUrlOther ( )
    public function testUrlOther()
    {
        $this->specify("different url is not correct", function () {
            $_SERVER['PHP_SELF'] = '/index.php';
            $di = $this->setupDI();
            $url = new Url();
            $url->setDI($di);
            $expected = '/classes/api/Some';
            $actual = $url->get('classes/api/Some');
            expect($actual)->equals($expected);
        });
    }