Upgrade tests to PhpUnit 10 (#5252)

This commit is contained in:
Kevin Papst
2024-12-22 01:25:30 +01:00
committed by GitHub
parent 9bd37fb695
commit c7f0508707
377 changed files with 3308 additions and 3409 deletions

View File

@@ -19,7 +19,7 @@ class TranslationsTest extends TestCase
public function testForWrongFileExtension(): void
{
$files = glob(__DIR__ . '/../translations/*.*');
$this->assertIsArray($files);
self::assertIsArray($files);
foreach ($files as $file) {
self::assertStringEndsWith('.xlf', $file);
}
@@ -28,7 +28,7 @@ class TranslationsTest extends TestCase
public function testForEmptyStrings(): void
{
$files = glob(__DIR__ . '/../translations/*.xlf');
$this->assertIsArray($files);
self::assertIsArray($files);
foreach ($files as $file) {
$xml = simplexml_load_file($file);
@@ -52,7 +52,7 @@ class TranslationsTest extends TestCase
public function testReplacerWereNotTranslated(): void
{
$englishFiles = glob(__DIR__ . '/../translations/*.en.xlf');
$this->assertIsArray($englishFiles);
self::assertIsArray($englishFiles);
foreach ($englishFiles as $englishFile) {
$english = simplexml_load_file($englishFile);
$trans = [];
@@ -73,7 +73,7 @@ class TranslationsTest extends TestCase
$expectedCounter = \count($trans);
$files = glob(__DIR__ . '/../translations/' . str_replace('.en.xlf', '', basename($englishFile)) . '*.xlf');
$this->assertIsArray($files);
self::assertIsArray($files);
foreach ($files as $file) {
if ($englishFile === $file) {
continue;