/**
  * Tests graph history
  */
 public function testGraphHistory()
 {
     $graph = $this->repository->getGraphHistory(10, 1);
     $this->assertInstanceOf(Graph::className(), $graph);
     $this->assertContainsOnlyInstancesOf(Commit::className(), $graph->getCommits());
     $this->assertEquals(10, count($graph->getCommits()));
     $this->assertGreaterThanOrEqual(0, $graph->getLevels());
     $this->assertLessThan(9, $graph->getLevels());
     foreach ($graph->getCommits() as $commit) {
         /* @var $commit Commit */
         $this->assertInstanceOf(Commit::className(), $commit);
         $this->assertGreaterThanOrEqual(0, $commit->graphLevel);
         $this->assertLessThanOrEqual($graph->getLevels(), $commit->graphLevel);
     }
 }