public function ErrorTest::testGetLastCaller in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 30 - Contains \Drupal\Tests\Core\Utility\ErrorTest.
Class
- ErrorTest
- @coversDefaultClass \Drupal\Core\Utility\Error @group Utility
Namespace
Drupal\Tests\Core\UtilityCode
public function testGetLastCaller($backtrace, $expected) {
$this
->assertSame($expected, Error::getLastCaller($backtrace));
}