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()); }