Browse Source

Update push() to addd() in test app.

ADmad 9 years ago
parent
commit
3c3bbbe293
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/test_app/TestApp/Application.php

+ 2 - 2
tests/test_app/TestApp/Application.php

@@ -33,8 +33,8 @@ class Application extends BaseApplication
 
     public function middleware($middleware)
     {
-        $middleware->push(new RoutingMiddleware());
-        $middleware->push(function ($req, $res, $next) {
+        $middleware->add(new RoutingMiddleware());
+        $middleware->add(function ($req, $res, $next) {
             $res = $next($req, $res);
 
             return $res->withHeader('X-Middleware', 'true');