dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
876b33b
)
+Test for Status->CleanParams with a callback
author
addshore
<addshorewiki@gmail.com>
Sat, 25 Jan 2014 15:14:49 +0000
(16:14 +0100)
committer
addshore
<addshorewiki@gmail.com>
Sat, 25 Jan 2014 15:14:49 +0000
(16:14 +0100)
Change-Id: I4e7570ea041d28303388c630b3ca07225faf8551
tests/phpunit/includes/StatusTest.php
patch
|
blob
|
history
diff --git
a/tests/phpunit/includes/StatusTest.php
b/tests/phpunit/includes/StatusTest.php
index
08c1470
..
2ba804f
100644
(file)
--- a/
tests/phpunit/includes/StatusTest.php
+++ b/
tests/phpunit/includes/StatusTest.php
@@
-276,12
+276,14
@@
class StatusTest extends MediaWikiLangTestCase {
$this->assertEquals( $expected, $method->invoke( $status, $params ) );
}
- /**
- * @todo test cleanParams with a callback
- */
public static function provideCleanParams() {
+ $cleanCallback = function( $value ) {
+ return '-' . $value . '-';
+ };
+
return array(
array( false, array( 'foo' => 'bar' ), array( 'foo' => 'bar' ) ),
+ array( $cleanCallback, array( 'foo' => 'bar' ), array( 'foo' => '-bar-' ) ),
);
}