SebastiaanLuca\Router\Tests\Routers\RouterTest::createRouter PHP Method

createRouter() protected method

Create a new router.
protected createRouter ( ) : Mockery\MockInterface | Router
return Mockery\MockInterface | SebastiaanLuca\Router\Routers\Router
    protected function createRouter()
    {
        // Create a basic router and implement the map method.
        // makePartial() prevents the constructor from being called.
        return $this->mock(Router::class, [null => null])->makePartial();
    }