PhlytyTest\AppTest::testSuccessfulRoutingDispatchesController PHP Method

testSuccessfulRoutingDispatchesController() public method

    public function testSuccessfulRoutingDispatchesController()
    {
        $foo = $this->app->get('/foo', function ($app) {
            $app->response()->setContent('Foo bar!');
        });
        $request = $this->app->request();
        $request->setMethod('GET')->setUri('/foo');
        $this->app->run();
        $response = $this->app->response();
        $this->assertEquals('Foo bar!', $response->sentContent);
    }
AppTest