X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FGlobalFunctions%2FwfGetCallerTest.php;h=8a7bfa5a8cf38491f9fa59737c3731c12d9aea4f;hb=a5be382adfdad4678eec18413c6a118cb3284daf;hp=bb2b33fe5b40af0c7bb026ca861bba50efe52f1c;hpb=a8b5e408bf8df6a02d18c70ad22ec14f2333abd4;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/GlobalFunctions/wfGetCallerTest.php b/tests/phpunit/includes/GlobalFunctions/wfGetCallerTest.php index bb2b33fe5b..8a7bfa5a8c 100644 --- a/tests/phpunit/includes/GlobalFunctions/wfGetCallerTest.php +++ b/tests/phpunit/includes/GlobalFunctions/wfGetCallerTest.php @@ -6,7 +6,7 @@ */ class WfGetCallerTest extends MediaWikiTestCase { public function testZero() { - $this->assertEquals( __METHOD__, wfGetCaller( 1 ) ); + $this->assertEquals( 'WfGetCallerTest->testZero', wfGetCaller( 1 ) ); } function callerOne() { @@ -14,10 +14,10 @@ class WfGetCallerTest extends MediaWikiTestCase { } public function testOne() { - $this->assertEquals( 'WfGetCallerTest::testOne', self::callerOne() ); + $this->assertEquals( 'WfGetCallerTest->testOne', self::callerOne() ); } - function intermediateFunction( $level = 2, $n = 0 ) { + static function intermediateFunction( $level = 2, $n = 0 ) { if ( $n > 0 ) { return self::intermediateFunction( $level, $n - 1 ); } @@ -26,11 +26,11 @@ class WfGetCallerTest extends MediaWikiTestCase { } public function testTwo() { - $this->assertEquals( 'WfGetCallerTest::testTwo', self::intermediateFunction() ); + $this->assertEquals( 'WfGetCallerTest->testTwo', self::intermediateFunction() ); } public function testN() { - $this->assertEquals( 'WfGetCallerTest::testN', self::intermediateFunction( 2, 0 ) ); + $this->assertEquals( 'WfGetCallerTest->testN', self::intermediateFunction( 2, 0 ) ); $this->assertEquals( 'WfGetCallerTest::intermediateFunction', self::intermediateFunction( 1, 0 )