You are here

public function AnnotationFileLoaderTest::testLoadVariadic in Zircon Profile 8.0

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

@requires PHP 5.6

File

vendor/symfony/routing/Tests/Loader/AnnotationFileLoaderTest.php, line 41

Class

AnnotationFileLoaderTest

Namespace

Symfony\Component\Routing\Tests\Loader

Code

public function testLoadVariadic() {
  $route = new Route(array(
    'path' => '/path/to/{id}',
  ));
  $this->reader
    ->expects($this
    ->once())
    ->method('getClassAnnotation');
  $this->reader
    ->expects($this
    ->once())
    ->method('getMethodAnnotations')
    ->will($this
    ->returnValue(array(
    $route,
  )));
  $this->loader
    ->load(__DIR__ . '/../Fixtures/OtherAnnotatedClasses/VariadicClass.php');
}