public function testCorrectControllerPath() { $this->validator->validate(array('_controller' => 'FrameworkBundle:Redirect:redirect'), new RouteDefaults()); $this->assertNoViolation(); }