You are here

protected function ContainerTest::getField in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ContainerTest::getField()
5 calls to ContainerTest::getField()
ContainerTest::testAddScope in vendor/symfony/dependency-injection/Tests/ContainerTest.php
ContainerTest::testEnterChildScopeRecursively in vendor/symfony/dependency-injection/Tests/ContainerTest.php
ContainerTest::testEnterLeaveScopeWithChildScopes in vendor/symfony/dependency-injection/Tests/ContainerTest.php
ContainerTest::testEnterScopeRecursivelyWithInactiveChildScopes in vendor/symfony/dependency-injection/Tests/ContainerTest.php
ContainerTest::testSetAlsoSetsScopedService in vendor/symfony/dependency-injection/Tests/ContainerTest.php

File

vendor/symfony/dependency-injection/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);
}