Пример #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.');
 }
Пример #2
0
Файл: Sqon.php Проект: sqon/sqon
 /**
  * {@inheritdoc}
  */
 public function count()
 {
     return $this->database->countPaths();
 }