Beispiel #1
0
 /**
  * @param Request $request
  * @param array   $routes
  * @param         $result
  *
  * @dataProvider provideCheckRouteTestData
  */
 public function testCheckCurrentRoute(Request $request, array $routes, $result)
 {
     app(HttpKernelContract::class)->handle($request);
     $this->assertSame($result, \Active::checkRoute($routes));
     $this->assertSame($result, app('active')->checkRoute($routes));
     $this->assertSame($result, if_route($routes));
 }