PhlytyTest\AppTest::testRunningWithNoMatchingRoutesRaisesPageNotFoundException PHP Method

testRunningWithNoMatchingRoutesRaisesPageNotFoundException() public method

    public function testRunningWithNoMatchingRoutesRaisesPageNotFoundException()
    {
        $this->setupRoutes();
        $r = new ReflectionObject($this->app);
        $routeMethod = $r->getMethod('route');
        $routeMethod->setAccessible(true);
        $this->setExpectedException('Phlyty\\Exception\\PageNotFoundException');
        $routeMethod->invoke($this->app, $this->app->request(), 'GET');
    }
AppTest