Skip to content

Commit

Permalink
AssertCount on HHVM freezes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Aug 29, 2014
1 parent f608785 commit ec7e58c
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 ec7e58c

Please sign in to comment.