/** * @expectedException Exception */ public function testSetActiveCrashWithTooManyUsers() { for ($i = 0; $i <= 5000; $i++) { $uids[] = $i; } $this->object->set_active_users($uids); }