public function OutputRulesTest::getProtectedMethod in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/test/HTML5/Serializer/OutputRulesTest.php \Masterminds\HTML5\Tests\Serializer\OutputRulesTest::getProtectedMethod()
Using reflection we make a protected method accessible for testing.
Parameters
string $name: The name of the method on the Traverser class to test.
Return value
\ReflectionMethod \ReflectionMethod for the specified method
8 calls to OutputRulesTest::getProtectedMethod()
- OutputRulesTest::testAttrs in vendor/
masterminds/ html5/ test/ HTML5/ Serializer/ OutputRulesTest.php - OutputRulesTest::testBooleanAttrs in vendor/
masterminds/ html5/ test/ HTML5/ Serializer/ OutputRulesTest.php - @dataProvider booleanAttributes
- OutputRulesTest::testDoctype in vendor/
masterminds/ html5/ test/ HTML5/ Serializer/ OutputRulesTest.php - OutputRulesTest::testEnc in vendor/
masterminds/ html5/ test/ HTML5/ Serializer/ OutputRulesTest.php - Test basic encoding of text. @dataProvider getEncData
- OutputRulesTest::testEscape in vendor/
masterminds/ html5/ test/ HTML5/ Serializer/ OutputRulesTest.php - Test basic encoding of text. @dataProvider getEncData
File
- vendor/
masterminds/ html5/ test/ HTML5/ Serializer/ OutputRulesTest.php, line 34
Class
Namespace
Masterminds\HTML5\Tests\SerializerCode
public function getProtectedMethod($name) {
$class = new \ReflectionClass('\\Masterminds\\HTML5\\Serializer\\OutputRules');
$method = $class
->getMethod($name);
$method
->setAccessible(true);
return $method;
}