You are here

public function PhpFileLoaderTest::testLoad in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Loader/PhpFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\PhpFileLoaderTest::testLoad()

@covers Symfony\Component\DependencyInjection\Loader\PhpFileLoader::load

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Loader/PhpFileLoaderTest.php, line 34

Class

PhpFileLoaderTest

Namespace

Symfony\Component\DependencyInjection\Tests\Loader

Code

public function testLoad() {
  $loader = new PhpFileLoader($container = new ContainerBuilder(), new FileLocator());
  $loader
    ->load(__DIR__ . '/../Fixtures/php/simple.php');
  $this
    ->assertEquals('foo', $container
    ->getParameter('foo'), '->load() loads a PHP file resource');
}