Skip to content

Commit

Permalink
ConfigTest - remove HHVM hack: now we use assertCount on iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Jun 15, 2016
1 parent 469bc00 commit fbbc8c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Symfony/CS/Tests/Config/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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());
}
Expand All @@ -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());
}
Expand Down

0 comments on commit fbbc8c1

Please sign in to comment.