Skip to content

Commit

Permalink
Merge pull request #1413 from Nyholm/patch-1
Browse files Browse the repository at this point in the history
AssertCount on HHVM freezes
  • Loading branch information
whatthejeff committed Aug 30, 2014
2 parents ff6e1d4 + ec7e58c commit 8cd304a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/Framework/AssertTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3525,6 +3525,22 @@ public function testAssertCount()
$this->fail();
}

/**
* @covers PHPUnit_Framework_Assert::assertCount
*/
public function testAssertCountTraversable()
{
$this->assertCount(2, new ArrayIterator(array(1,2)));

try {
$this->assertCount(2, new ArrayIterator(array(1,2,3)));
} catch (PHPUnit_Framework_AssertionFailedError $e) {
return;
}

$this->fail();
}

/**
* @covers PHPUnit_Framework_Assert::assertCount
*/
Expand Down

0 comments on commit 8cd304a

Please sign in to comment.