summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/tests/phpunit/insertables/TranslatablePageInsertablesSuggesterTest.php')
-rw-r--r--MLEB/Translate/tests/phpunit/insertables/TranslatablePageInsertablesSuggesterTest.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/MLEB/Translate/tests/phpunit/insertables/TranslatablePageInsertablesSuggesterTest.php b/MLEB/Translate/tests/phpunit/insertables/TranslatablePageInsertablesSuggesterTest.php
index d0fb3f2a..4d0a5171 100644
--- a/MLEB/Translate/tests/phpunit/insertables/TranslatablePageInsertablesSuggesterTest.php
+++ b/MLEB/Translate/tests/phpunit/insertables/TranslatablePageInsertablesSuggesterTest.php
@@ -4,10 +4,10 @@
*
* @file
* @author Niklas Laxström
- * @license GPL-2.0+
+ * @license GPL-2.0-or-later
*/
-class TranslatablePageInsertablesSuggesterTest extends MediaWikiInsertablesSuggesterTest {
+class TranslatablePageInsertablesSuggesterTest extends PHPUnit\Framework\TestCase {
/**
* @dataProvider getInsertablesProvider
*/
@@ -17,23 +17,23 @@ class TranslatablePageInsertablesSuggesterTest extends MediaWikiInsertablesSugge
}
public function getInsertablesProvider() {
- return array(
- array(
+ return [
+ [
'Hi $1, I am $myname $myLastName.',
- array(
+ [
new Insertable( '$1', '$1', '' ),
new Insertable( '$myname', '$myname', '' ),
new Insertable( '$myLastName', '$myLastName', '' ),
- )
- ),
- array(
+ ]
+ ],
+ [
'Insertables can $have-hyphens, $number9 and $under_scores',
- array(
+ [
new Insertable( '$have-hyphens', '$have-hyphens', '' ),
new Insertable( '$number9', '$number9', '' ),
new Insertable( '$under_scores', '$under_scores', '' ),
- )
- ),
- );
+ ]
+ ],
+ ];
}
}