public function testGetLastNRobots() { $myDB = DBMaker::create('botspacetest'); Database::clearDB(); $db = Database::getDB('botspacetest', 'C:\\xampp\\myConfig.ini'); $numRobotsToFetch = 3; $lastNRobots = HomeView::getLastNCreatedRobots($numRobotsToFetch); //print_r($lastNRobots); $this->assertEquals(count($lastNRobots), $numRobotsToFetch, 'It should fetch the number of robots specified'); }