expectException($class); $this->expectExceptionCode($code); } function assertTime($exp, $test) { $exp = $this->dateTransform($exp); $test = $this->dateTransform($test); $this->assertSame($exp, $test); } 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; } }