Beispiel #1
0
 /**
  * testMiddleware
  *
  * @return void
  */
 public function testMiddleware()
 {
     $app = new Application(dirname(dirname(__DIR__)) . '/config');
     $middleware = new MiddlewareQueue();
     $middleware = $app->middleware($middleware);
     $this->assertInstanceOf(AssetMiddleware::class, $middleware->get(0));
     $this->assertInstanceOf(RoutingMiddleware::class, $middleware->get(1));
 }