Beispiel #1
0
 /**
  * Verify that the number of paths can be counted.
  */
 public function testCountTotalNumberOfPaths()
 {
     self::assertEquals(0, $this->manager->countPaths(), 'There should be no paths in the database.');
     $this->insert->execute($this->values);
     self::assertEquals(1, $this->manager->countPaths(), 'There should be exactly one path in the database.');
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 public function count()
 {
     return $this->database->countPaths();
 }