/** * Testing loadAll method. * * @since 1.0 * @dataProvider getActiveRecordProviders */ public function testLoadAll($provider) { $config = ConfigProvider::getInstance(); $config->set('db.provider.name', $provider); $this->person->save(); $peopleCount = $this->person->getCount(); $people = $this->person->loadAll(); $this->assertEquals($peopleCount, count($people), 'Testing loadAll method'); // only load 1 $people = $this->person->loadAll(0, 1); $this->assertEquals(1, count($people), 'Testing loadAll method'); }