function ErrorTest::testFormatBacktrace
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Utility/ErrorTest.php \Drupal\Tests\Core\Utility\ErrorTest::testFormatBacktrace()
- 10 core/tests/Drupal/Tests/Core/Utility/ErrorTest.php \Drupal\Tests\Core\Utility\ErrorTest::testFormatBacktrace()
- 9 core/tests/Drupal/Tests/Core/Utility/ErrorTest.php \Drupal\Tests\Core\Utility\ErrorTest::testFormatBacktrace()
- 8.9.x core/tests/Drupal/Tests/Core/Utility/ErrorTest.php \Drupal\Tests\Core\Utility\ErrorTest::testFormatBacktrace()
Tests the formatBacktrace() method.
Attributes
#[DataProvider('providerTestFormatBacktrace')]
Parameters
array $backtrace: The test backtrace array.
string $expected: The expected backtrace as a string.
File
-
core/
tests/ Drupal/ Tests/ Core/ Utility/ ErrorTest.php, line 76
Class
Namespace
Drupal\Tests\Core\UtilityCode
public function testFormatBacktrace(array $backtrace, string $expected) : void {
$this->assertSame($expected, Error::formatBacktrace($backtrace));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.