diff options
Diffstat (limited to 'MLEB/Translate/tests/phpunit/insertables/MediaWikiInsertablesSuggesterTest.php')
-rw-r--r-- | MLEB/Translate/tests/phpunit/insertables/MediaWikiInsertablesSuggesterTest.php | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/MLEB/Translate/tests/phpunit/insertables/MediaWikiInsertablesSuggesterTest.php b/MLEB/Translate/tests/phpunit/insertables/MediaWikiInsertablesSuggesterTest.php index a96eca2a..be621739 100644 --- a/MLEB/Translate/tests/phpunit/insertables/MediaWikiInsertablesSuggesterTest.php +++ b/MLEB/Translate/tests/phpunit/insertables/MediaWikiInsertablesSuggesterTest.php @@ -4,10 +4,10 @@ * * @file * @author Niklas Laxström - * @license GPL-2.0+ + * @license GPL-2.0-or-later */ -class MediaWikiInsertablesSuggesterTest extends MediaWikiTestCase { +class MediaWikiInsertablesSuggesterTest extends PHPUnit\Framework\TestCase { /** * @dataProvider getInsertablesProvider @@ -18,18 +18,21 @@ class MediaWikiInsertablesSuggesterTest extends MediaWikiTestCase { } public function getInsertablesProvider() { - return array( - array( 'Hi $1', array( + return [ + [ 'Hi $1', [ new Insertable( '$1', '$1', '' ) - ) ), - array( '{{GENDER:$1|he|she}}', array( + ] ], + [ 'Hello $1user', [ + new Insertable( '$1user', '$1user', '' ), + ] ], + [ '{{GENDER:$1|he|she}}', [ new Insertable( '$1', '$1', '' ), new Insertable( 'GENDER:$1', '{{GENDER:$1|', '}}' ), - ) ), + ] ], // Parameterless gender - array( '{{GENDER:|he|she}}', array( + [ '{{GENDER:|he|she}}', [ new Insertable( 'GENDER:', '{{GENDER:|', '}}' ), - ) ), - ); + ] ], + ]; } } |