You are here

public function AnnotationClassLoaderTest::getLoadTests in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Tests/Loader/AnnotationClassLoaderTest.php \Symfony\Component\Routing\Tests\Loader\AnnotationClassLoaderTest::getLoadTests()

File

vendor/symfony/routing/Tests/Loader/AnnotationClassLoaderTest.php, line 72

Class

AnnotationClassLoaderTest

Namespace

Symfony\Component\Routing\Tests\Loader

Code

public function getLoadTests() {
  return array(
    array(
      'Symfony\\Component\\Routing\\Tests\\Fixtures\\AnnotatedClasses\\BarClass',
      array(
        'name' => 'route1',
        'path' => '/path',
      ),
      array(
        'arg2' => 'defaultValue2',
        'arg3' => 'defaultValue3',
      ),
    ),
    array(
      'Symfony\\Component\\Routing\\Tests\\Fixtures\\AnnotatedClasses\\BarClass',
      array(
        'defaults' => array(
          'arg2' => 'foo',
        ),
        'requirements' => array(
          'arg3' => '\\w+',
        ),
      ),
      array(
        'arg2' => 'defaultValue2',
        'arg3' => 'defaultValue3',
      ),
    ),
    array(
      'Symfony\\Component\\Routing\\Tests\\Fixtures\\AnnotatedClasses\\BarClass',
      array(
        'options' => array(
          'foo' => 'bar',
        ),
      ),
      array(
        'arg2' => 'defaultValue2',
        'arg3' => 'defaultValue3',
      ),
    ),
    array(
      'Symfony\\Component\\Routing\\Tests\\Fixtures\\AnnotatedClasses\\BarClass',
      array(
        'schemes' => array(
          'https',
        ),
        'methods' => array(
          'GET',
        ),
      ),
      array(
        'arg2' => 'defaultValue2',
        'arg3' => 'defaultValue3',
      ),
    ),
    array(
      'Symfony\\Component\\Routing\\Tests\\Fixtures\\AnnotatedClasses\\BarClass',
      array(
        'condition' => 'context.getMethod() == "GET"',
      ),
      array(
        'arg2' => 'defaultValue2',
        'arg3' => 'defaultValue3',
      ),
    ),
  );
}