You are here

protected function ContainerTest::getField in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ContainerTest::getField()
5 calls to ContainerTest::getField()
ContainerTest::testAddScope in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
ContainerTest::testEnterChildScopeRecursively in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
ContainerTest::testEnterLeaveScopeWithChildScopes in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
ContainerTest::testEnterScopeRecursivelyWithInactiveChildScopes in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
ContainerTest::testSetAlsoSetsScopedService in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php, line 612

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);
}