You are here

public function KernelTest::testLocateResourceReturnsAllMatchesBis in Zircon Profile 8.0

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

File

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

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testLocateResourceReturnsAllMatchesBis() {
  $kernel = $this
    ->getKernel(array(
    'getBundle',
  ));
  $kernel
    ->expects($this
    ->once())
    ->method('getBundle')
    ->will($this
    ->returnValue(array(
    $this
      ->getBundle(__DIR__ . '/Fixtures/Bundle1Bundle'),
    $this
      ->getBundle(__DIR__ . '/Foobar'),
  )));
  $this
    ->assertEquals(array(
    __DIR__ . '/Fixtures/Bundle1Bundle/foo.txt',
  ), $kernel
    ->locateResource('@Bundle1Bundle/foo.txt', null, false));
}