PhlytyTest\AppTest::testUrlForHelperAssemblesUrlBasedOnCurrentRouteMatchWhenNoNameProvided PHP Method

testUrlForHelperAssemblesUrlBasedOnCurrentRouteMatchWhenNoNameProvided() public method

    public function testUrlForHelperAssemblesUrlBasedOnCurrentRouteMatchWhenNoNameProvided()
    {
        $foo = $this->app->get('/foo/:id', function ($app) {
            $app->response()->setContent($app->urlFor());
        })->name('foo');
        $request = $this->app->request();
        $request->setMethod('GET')->setUri('/foo/1');
        $this->app->run();
        $response = $this->app->response();
        $this->assertEquals('/foo/1', $response->sentContent);
    }
AppTest