Skip to content

Commit 17cb847

Browse files
Abijeetkartikm
authored andcommitted
Update PHP dependencies
Ran composer show --outdated and then composer update after updating package.json Fix CI failures: * assertEmpty performs loose comparisons and should not be used.
1 parent d078c17 commit 17cb847

File tree

3 files changed

+48
-130
lines changed

3 files changed

+48
-130
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"mustangostang/spyc": "0.6.3"
3535
},
3636
"require-dev": {
37-
"phpunit/phpunit": "9.5.20",
38-
"mediawiki/mediawiki-codesniffer": "38.0.0"
37+
"phpunit/phpunit": "9.5.21",
38+
"mediawiki/mediawiki-codesniffer": "39.0.0"
3939
},
4040
"support": {
4141
"issues": "https://github.com/wikimedia/language-data/issues",

composer.lock

Lines changed: 44 additions & 126 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/php/LanguageUtilTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ public function testGetAutonyms() {
8686
* @covers getLanguagesInScripts
8787
*/
8888
public function testGetLanguagesInScripts() {
89-
$this->assertEmpty(
90-
$this->languageUtil->getLanguagesInScripts( [ self::UNKNOWN_LANGUAGE_CODE ] )
89+
$this->assertCount(
90+
0, $this->languageUtil->getLanguagesInScripts( [ self::UNKNOWN_LANGUAGE_CODE ] )
9191
);
9292

9393
$expectedValues = $this->languageUtil->getLanguagesInScripts( [ 'Latn', 'Grek' ] );

0 commit comments

Comments
 (0)