Пример #1
0
 public function tearDown()
 {
     Route::$validate = true;
     parent::tearDown();
     Config::clearProperty('namespace', 'controller');
 }
Пример #2
0
 /**
  * @test
  */
 public function shouldNotValidateExistingRoutes()
 {
     //given
     Route::$validate = false;
     Route::get('/users/index', 'users#index');
     Route::get('/users/index', 'users#index');
     Route::$validate = true;
     //when
     $routes = Route::getRoutes();
     //then
     Assert::thatArray($routes)->hasSize(2);
 }