expectException($class); $this->expectExceptionCode($code); } function clearData(bool $loadLang = true): bool { $r = new \ReflectionClass(\JKingWeb\Arsse\Data::class); $props = array_keys($r->getStaticProperties()); foreach($props as $prop) { Data::$$prop = null; } if($loadLang) { Data::$l = new \JKingWeb\Arsse\Lang(); } return true; } }