From 3c3bbbe2937079c06a2bd246201ede818603e2eb Mon Sep 17 00:00:00 2001 From: ADmad Date: Tue, 26 Jul 2016 01:16:35 +0530 Subject: [PATCH] Update push() to addd() in test app. --- tests/test_app/TestApp/Application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_app/TestApp/Application.php b/tests/test_app/TestApp/Application.php index c610a7a40e8..d8cef3c4527 100644 --- a/tests/test_app/TestApp/Application.php +++ b/tests/test_app/TestApp/Application.php @@ -33,8 +33,8 @@ public function bootstrap() 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');