function ErrorTest::testFormatBacktrace
Tests the formatBacktrace() method.
@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 75
Class
- ErrorTest
- @coversDefaultClass \Drupal\Core\Utility\Error[[api-linebreak]] @group Utility
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.