function ReflectionTest::testGetParameterClassName

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Utility/ReflectionTest.php \Drupal\Tests\Component\Utility\ReflectionTest::testGetParameterClassName()
  2. 10 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 25

Class

ReflectionTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Component%21Utility%21Reflection.php/class/Reflection/11.x" title="Provides helper methods for reflection." class="local">\Drupal\Component\Utility\Reflection</a> @group Utility

Namespace

Drupal\Tests\Component\Utility

Code

public function testGetParameterClassName(?string $expected, \ReflectionParameter $parameter) : void {
    $this->assertEquals($expected, Reflection::getParameterClassName($parameter));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.