diff --git a/Symfony/CS/Tests/Config/ConfigTest.php b/Symfony/CS/Tests/Config/ConfigTest.php index 8f5c04ffb04..91a66879371 100644 --- a/Symfony/CS/Tests/Config/ConfigTest.php +++ b/Symfony/CS/Tests/Config/ConfigTest.php @@ -24,7 +24,7 @@ public function testThatDefaultFinderWorksWithDirSetOnConfig() $config->getFinder()->in(__DIR__.'/../Fixtures/FinderDirectory'); $iterator = $config->getFinder()->getIterator(); - $this->assertSame(1, count($iterator)); + $this->assertCount(1, $iterator); $iterator->rewind(); $this->assertSame('somefile.php', $iterator->current()->getFilename()); } @@ -38,7 +38,7 @@ public function testThatCustomDefaultFinderWorks() $config->finder($finder); $iterator = $config->getFinder()->getIterator(); - $this->assertSame(1, count($iterator)); + $this->assertCount(1, $iterator); $iterator->rewind(); $this->assertSame('somefile.php', $iterator->current()->getFilename()); } @@ -52,7 +52,7 @@ public function testThatCustomFinderWorks() $config->finder($finder); $iterator = $config->getFinder()->getIterator(); - $this->assertSame(1, count($iterator)); + $this->assertCount(1, $iterator); $iterator->rewind(); $this->assertSame('somefile.php', $iterator->current()->getFilename()); }