Skip to content

Commit 600b842

Browse files
committed
[SCA] Minor fixes on tests
1 parent b0cd62e commit 600b842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/PluralizationRulesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ protected function validateMatrix($nplural, $matrix, $expectSuccess = true)
100100
foreach ($matrix as $langCode => $data) {
101101
$indexes = array_flip($data);
102102
if ($expectSuccess) {
103-
$this->assertEquals($nplural, \count($indexes), "Langcode '$langCode' has '$nplural' plural forms.");
103+
$this->assertCount((int) $nplural, $indexes, "Langcode '$langCode' has '$nplural' plural forms.");
104104
} else {
105-
$this->assertNotEquals((int) $nplural, \count($indexes), "Langcode '$langCode' has '$nplural' plural forms.");
105+
$this->assertNotCount((int) $nplural, $indexes, "Langcode '$langCode' has '$nplural' plural forms.");
106106
}
107107
}
108108
}

0 commit comments

Comments
 (0)