public function AnnotationFileLoaderTest::testLoadVariadic in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\Routing\Tests\LoaderCode
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');
}