function 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 26
Class
- ErrorTest
- @coversDefaultClass \Drupal\Core\Utility\Error[[api-linebreak]] @group Utility
Namespace
Drupal\Tests\Core\UtilityCode
public function testGetLastCaller(array $backtrace, array $expected) : void {
$this->assertSame($expected, Error::getLastCaller($backtrace));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.