public function ErrorTest::testFormatBacktrace in Drupal 10
Same name and namespace in other branches
- 8 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()
Tests the formatBacktrace() method.
@dataProvider providerTestFormatBacktrace
Parameters
array $backtrace: The test backtrace array.
array $expected: The expected return array.
File
- core/
tests/ Drupal/ Tests/ Core/ Utility/ ErrorTest.php, line 73
Class
- ErrorTest
- @coversDefaultClass \Drupal\Core\Utility\Error @group Utility
Namespace
Drupal\Tests\Core\UtilityCode
public function testFormatBacktrace($backtrace, $expected) {
$this
->assertSame($expected, Error::formatBacktrace($backtrace));
}