Skip to content

Commit 009fb11

Browse files
committed
PHPUnit's assertContains() performs strict comparisons now.
1 parent 600b842 commit 009fb11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/TranslatorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,12 @@ public function testFallbackCatalogueResources()
319319

320320
$resources = $translator->getCatalogue('en')->getResources();
321321
$this->assertCount(1, $resources);
322-
$this->assertContains(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'resources.yml', $resources);
322+
$this->assertContainsEquals(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'resources.yml', $resources);
323323

324324
$resources = $translator->getCatalogue('en_GB')->getResources();
325325
$this->assertCount(2, $resources);
326-
$this->assertContains(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'empty.yml', $resources);
327-
$this->assertContains(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'resources.yml', $resources);
326+
$this->assertContainsEquals(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'empty.yml', $resources);
327+
$this->assertContainsEquals(__DIR__.\DIRECTORY_SEPARATOR.'fixtures'.\DIRECTORY_SEPARATOR.'resources.yml', $resources);
328328
}
329329

330330
/**

0 commit comments

Comments
 (0)