comparison core/tests/Drupal/FunctionalTests/GetTestMethodCallerTest.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
1 <?php
2
3 namespace Drupal\FunctionalTests;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8 * Explicit test for BrowserTestBase::getTestMethodCaller().
9 *
10 * @group browsertestbase
11 */
12 class GetTestMethodCallerTest extends BrowserTestBase {
13
14 /**
15 * Tests BrowserTestBase::getTestMethodCaller().
16 */
17 public function testGetTestMethodCaller() {
18 $method_caller = $this->getTestMethodCaller();
19 $expected = [
20 'file' => __FILE__,
21 'line' => 18,
22 'function' => __CLASS__ . '->' . __FUNCTION__ . '()',
23 'class' => BrowserTestBase::class,
24 'object' => $this,
25 'type' => '->',
26 'args' => [],
27 ];
28 $this->assertEquals($expected, $method_caller);
29 }
30
31 }