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

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 }