public function AccessingDataTest::testGetCount in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/aklump/loft_data_grids/tests/phpunit/AccessingDataTest.php \AKlump\LoftDataGrids\AccessingDataTest::testGetCount()
File
- vendor/
aklump/ loft_data_grids/ tests/ AccessingDataTest.php, line 42 - Tests for the ExportData class data access.
Class
Namespace
AKlump\LoftDataGridsCode
public function testGetCount() {
$obj = new ExportData();
$this
->assertSame(0, $obj
->getCount());
$obj
->add('name', 'bob')
->next();
$obj
->add('name', 'charlie')
->next();
$obj
->add('name', 'dave')
->next();
$this
->assertSame(3, $obj
->getCount());
}