lithium\tests\cases\net\http\RouterTest::testMatchWithNoRouteDefined PHP Method

testMatchWithNoRouteDefined() public method

    public function testMatchWithNoRouteDefined()
    {
        $ex = "No parameter match found for URL `('controller' => 'User', ";
        $ex .= "'action' => 'view', 'args' => 'bob')` in `app` scope.";
        $this->assertException($ex, function () {
            Router::match(array('User::view', 'args' => 'bob'), null, array('scope' => 'app'));
        });
    }
RouterTest