function ErrorTest::testGetLastCaller
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Utility/ErrorTest.php \Drupal\Tests\Core\Utility\ErrorTest::testGetLastCaller()
- 10 core/tests/Drupal/Tests/Core/Utility/ErrorTest.php \Drupal\Tests\Core\Utility\ErrorTest::testGetLastCaller()
- 11.x core/tests/Drupal/Tests/Core/Utility/ErrorTest.php \Drupal\Tests\Core\Utility\ErrorTest::testGetLastCaller()
Tests the getLastCaller() method.
@dataProvider providerTestGetLastCaller
Parameters
array $backtrace: The test backtrace array.
array $expected: The expected return array.
File
-
core/
tests/ Drupal/ Tests/ Core/ Utility/ ErrorTest.php, line 24
Class
- ErrorTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Utility%21Error.php/class/Error/8.9.x" title="Drupal error utility class." class="local">\Drupal\Core\Utility\Error</a> @group Utility
Namespace
Drupal\Tests\Core\UtilityCode
public function testGetLastCaller($backtrace, $expected) {
$this->assertSame($expected, Error::getLastCaller($backtrace));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.