Skip to content

Commit

Permalink
Add test for max retries setter
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Feb 11, 2015
1 parent 397f0fb commit 592e766
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/CollectionTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ public function testSetCollection()
$this->collection->setCollection($original);
}

public function testSetMaxRetries()
{
$this->collection->setMaxRetries(5);
$reflection = new ReflectionObject($this->collection);
$property = $reflection->getProperty('maxRetries');
$property->setAccessible(true);
$this->assertEquals(5, $property->getValue($this->collection));
}

public function testCount()
{
$result = $this->collection->count();
Expand Down

0 comments on commit 592e766

Please sign in to comment.