added simple testcase and fix to Router::setBasePath

done


On Wed, Aug 13, 2014 at 1:24 AM, Jefersson Nathan <notifications@github.com>
wrote:

> In tests/RouterTest.php:
>
> > +        $collection = new RouteCollection();
> > +        $collection->attach(new Route('/users/', array(
> > +            '_controller' => 'someController::users_create',
> > +            'methods' => 'GET'
> > +        )));
> > +        $collection->attach(new Route('/user/:id', array(
> > +            '_controller' => 'someController::user',
> > +            'methods' => 'GET'
> > +        )));
> > +        $collection->attach(new Route('/', array(
> > +            '_controller' => 'someController::indexAction',
> > +            'methods' => 'GET'
> > +        )));
> > +
> > +        $router = new Router($collection);
> > +        $this->assertFalse(false, $router->match('/aaa'));
>
> Can you use a @dataprovider for that.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/dannyvankooten/PHP-Router/pull/38/files#r16124233>.
>