/**
  * Tests the onAlterRoutes method for invalid variables.
  *
  * @param \Symfony\Component\Routing\Route $route
  *   The route to check.
  *
  * @dataProvider providerTestOnRouteBuildingInvalidVariables
  * @expectedException \PHPUnit_Framework_Error_Warning
  * @expectedExceptionMessage uses reserved variable names
  *
  * @covers ::onAlterRoutes
  */
 public function testOnRouteBuildingInvalidVariables(Route $route)
 {
     $route_collection = $this->getMock('Symfony\\Component\\Routing\\RouteCollection', NULL);
     $route_collection->add('test', $route);
     $event = new RouteBuildEvent($route_collection, 'test');
     $subscriber = new SpecialAttributesRouteSubscriber();
     $subscriber->onAlterRoutes($event);
 }
 /**
  * Tests the onAlterRoutes method for invalid variables.
  *
  * @param \Symfony\Component\Routing\Route $route
  *   The route to check.
  *
  * @dataProvider providerTestOnRouteBuildingInvalidVariables
  * @expectedException \PHPUnit_Framework_Error_Warning
  * @expectedExceptionMessage uses reserved variable names
  */
 public function testOnRouteBuildingInvalidVariables(Route $route)
 {
     $route_collection = new RouteCollection();
     $route_collection->add('test', $route);
     $event = new RouteBuildEvent($route_collection, 'test');
     $this->specialAttributesRouteSubscriber->onAlterRoutes($event);
 }