dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Change the default for wgThumbnailMinimumBucketDistance"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
GlobalFunctions
/
wfGetCallerTest.php
diff --git
a/tests/phpunit/includes/GlobalFunctions/wfGetCallerTest.php
b/tests/phpunit/includes/GlobalFunctions/wfGetCallerTest.php
index
3521d18
..
bb2b33f
100644
(file)
--- a/
tests/phpunit/includes/GlobalFunctions/wfGetCallerTest.php
+++ b/
tests/phpunit/includes/GlobalFunctions/wfGetCallerTest.php
@@
-1,8
+1,11
@@
<?php
<?php
+/**
+ * @group GlobalFunctions
+ * @covers ::wfGetCaller
+ */
class WfGetCallerTest extends MediaWikiTestCase {
class WfGetCallerTest extends MediaWikiTestCase {
-
- function testZero() {
+ public function testZero() {
$this->assertEquals( __METHOD__, wfGetCaller( 1 ) );
}
$this->assertEquals( __METHOD__, wfGetCaller( 1 ) );
}
@@
-10,7
+13,7
@@
class WfGetCallerTest extends MediaWikiTestCase {
return wfGetCaller();
}
return wfGetCaller();
}
- function testOne() {
+
public
function testOne() {
$this->assertEquals( 'WfGetCallerTest::testOne', self::callerOne() );
}
$this->assertEquals( 'WfGetCallerTest::testOne', self::callerOne() );
}
@@
-22,16
+25,22
@@
class WfGetCallerTest extends MediaWikiTestCase {
return wfGetCaller( $level );
}
return wfGetCaller( $level );
}
- function testTwo() {
+
public
function testTwo() {
$this->assertEquals( 'WfGetCallerTest::testTwo', self::intermediateFunction() );
}
$this->assertEquals( 'WfGetCallerTest::testTwo', self::intermediateFunction() );
}
- function testN() {
+
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 ) );
+ $this->assertEquals(
+ 'WfGetCallerTest::intermediateFunction',
+ self::intermediateFunction( 1, 0 )
+ );
for ( $i = 0; $i < 10; $i++ ) {
for ( $i = 0; $i < 10; $i++ ) {
- $this->assertEquals( 'WfGetCallerTest::intermediateFunction', self::intermediateFunction( $i + 1, $i ) );
+ $this->assertEquals(
+ 'WfGetCallerTest::intermediateFunction',
+ self::intermediateFunction( $i + 1, $i )
+ );
}
}
}
}
}
}