Example #1
0
 private function assertCounts(IDataSource $source, $active_count, $full = self::FULL_USER_COUNT, $columns = self::COLUMN_COUNT)
 {
     Assert::count($columns, $source->fetch());
     Assert::count($active_count, $source->fetchAll());
     Assert::count($full, $source->fetchFullData());
     Assert::count($active_count, $source->fetchAllForExport());
     Assert::same($full, $source->getTotalCount());
     Assert::same($active_count, $source->count());
 }