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 "Test ApiUserrights"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
DeferredStringifierTest.php
diff --git
a/tests/phpunit/includes/libs/DeferredStringifierTest.php
b/tests/phpunit/includes/libs/DeferredStringifierTest.php
index
cba2939
..
c9cdf58
100644
(file)
--- a/
tests/phpunit/includes/libs/DeferredStringifierTest.php
+++ b/
tests/phpunit/includes/libs/DeferredStringifierTest.php
@@
-1,13
+1,17
@@
<?php
<?php
-class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
+/**
+ * @covers DeferredStringifier
+ */
+class DeferredStringifierTest extends PHPUnit\Framework\TestCase {
+
+ use MediaWikiCoversValidator;
/**
/**
- * @covers DeferredStringifier
* @dataProvider provideToString
*/
public function testToString( $params, $expected ) {
* @dataProvider provideToString
*/
public function testToString( $params, $expected ) {
- $class = new ReflectionClass(
'DeferredStringifier'
);
+ $class = new ReflectionClass(
DeferredStringifier::class
);
$ds = $class->newInstanceArgs( $params );
$this->assertEquals( $expected, (string)$ds );
}
$ds = $class->newInstanceArgs( $params );
$this->assertEquals( $expected, (string)$ds );
}