You are here

public function FileLocatorTest::testLocateWithGlobalResourcePath in Zircon Profile 8

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

File

vendor/symfony/http-kernel/Tests/Config/FileLocatorTest.php, line 36

Class

FileLocatorTest

Namespace

Symfony\Component\HttpKernel\Tests\Config

Code

public function testLocateWithGlobalResourcePath() {
  $kernel = $this
    ->getMock('Symfony\\Component\\HttpKernel\\KernelInterface');
  $kernel
    ->expects($this
    ->atLeastOnce())
    ->method('locateResource')
    ->with('@BundleName/some/path', '/global/resource/path', false);
  $locator = new FileLocator($kernel, '/global/resource/path');
  $locator
    ->locate('@BundleName/some/path', null, false);
}