protected function ContainerTest::getField

3 calls to ContainerTest::getField()
ContainerTest::testAddScope in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
ContainerTest::testEnterLeaveScopeWithChildScopes in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
ContainerTest::testSetAlsoSetsScopedService in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerTest.php

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerTest.php, line 386

Class

ContainerTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

protected function getField($obj, $field) {
  $reflection = new \ReflectionProperty($obj, $field);
  $reflection
    ->setAccessible(true);
  return $reflection
    ->getValue($obj);
}