public function KernelTest::testLocateResourceThrowsExceptionWhenNameIsUnsafe

@expectedException \RuntimeException

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/KernelTest.php, line 334

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testLocateResourceThrowsExceptionWhenNameIsUnsafe() {
  $this
    ->getKernelForInvalidLocateResource()
    ->locateResource('@FooBundle/../bar');
}