Respect\Rest\RouterTest::testDeveloperCanSetUpAVirtualHostPathOnConstructor PHP Метод

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

    public function testDeveloperCanSetUpAVirtualHostPathOnConstructor()
    {
        $router = new Router('/store');
        $router->get('/products', 'Some Products!');
        $response = $router->dispatch('GET', '/store/products')->response();
        $this->assertSame('Some Products!', $response, 'Router should match using the virtual host combined URI');
    }