assertEquals(0, XNumber::fromBase62('')); foreach(self::TESTS as $test) $this->assertEquals($test[1], XNumber::fromBase62($test[0])); } public function testEncode(): void { foreach(self::TESTS as $test) $this->assertEquals($test[0], XNumber::toBase62($test[1])); } }