You are here

public function KernelTest::testLocateResourceThrowsExceptionWhenResourceDoesNotExist in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::testLocateResourceThrowsExceptionWhenResourceDoesNotExist()

@expectedException \InvalidArgumentException

File

vendor/symfony/http-kernel/Tests/KernelTest.php, line 416

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testLocateResourceThrowsExceptionWhenResourceDoesNotExist() {
  $kernel = $this
    ->getKernel(array(
    'getBundle',
  ));
  $kernel
    ->expects($this
    ->once())
    ->method('getBundle')
    ->will($this
    ->returnValue(array(
    $this
      ->getBundle(__DIR__ . '/Fixtures/Bundle1Bundle'),
  )));
  $kernel
    ->locateResource('@Bundle1Bundle/config/routing.xml');
}