You are here

public function OutputRulesTest::getTraverserProtectedProperty in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Serializer/OutputRulesTest.php \Masterminds\HTML5\Tests\Serializer\OutputRulesTest::getTraverserProtectedProperty()

File

vendor/masterminds/html5/test/HTML5/Serializer/OutputRulesTest.php, line 43

Class

OutputRulesTest

Namespace

Masterminds\HTML5\Tests\Serializer

Code

public function getTraverserProtectedProperty($name) {
  $class = new \ReflectionClass('\\Masterminds\\HTML5\\Serializer\\Traverser');
  $property = $class
    ->getProperty($name);
  $property
    ->setAccessible(true);
  return $property;
}