You are here

public function AnnotationClassLoaderTest::testSupportsChecksTypeIfSpecified in Zircon Profile 8

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

File

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

Class

AnnotationClassLoaderTest

Namespace

Symfony\Component\Routing\Tests\Loader

Code

public function testSupportsChecksTypeIfSpecified() {
  $this
    ->assertTrue($this->loader
    ->supports('class', 'annotation'), '->supports() checks the resource type if specified');
  $this
    ->assertFalse($this->loader
    ->supports('class', 'foo'), '->supports() checks the resource type if specified');
}