function ReflectionTest::testGetParameterClassName
Same name in other branches
- 10 core/tests/Drupal/Tests/Component/Utility/ReflectionTest.php \Drupal\Tests\Component\Utility\ReflectionTest::testGetParameterClassName()
- 11.x core/tests/Drupal/Tests/Component/Utility/ReflectionTest.php \Drupal\Tests\Component\Utility\ReflectionTest::testGetParameterClassName()
@covers ::getParameterClassName @dataProvider providerGetParameterClassName
Parameters
string|null $expected: The expected value of the parameter.
\ReflectionParameter $parameter: The reflection parameter.
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ ReflectionTest.php, line 23
Class
- ReflectionTest
- @coversDefaultClass \Drupal\Component\Utility\Reflection @group Utility
Namespace
Drupal\Tests\Component\UtilityCode
public function testGetParameterClassName(?string $expected, \ReflectionParameter $parameter) {
$this->assertEquals($expected, Reflection::getParameterClassName($parameter));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.