public function AnnotationClassLoaderTest::testSupportsChecksTypeIfSpecified

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Loader/AnnotationClassLoaderTest.php, line 63

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');
}