public function testGen8Digits() { $hotp = new HOTP(new HOTPSecret("3132333435363738393031323334353637383930", HOTPSecret::FORMAT_HEX), 8); $this->assertSame("84755224", $hotp->gen(0)); $this->assertSame("94287082", $hotp->gen(1)); $this->assertSame("37359152", $hotp->gen(2)); $this->assertSame("26969429", $hotp->gen(3)); $this->assertSame("40338314", $hotp->gen(4)); $this->assertSame("68254676", $hotp->gen(5)); $this->assertSame("18287922", $hotp->gen(6)); $this->assertSame("82162583", $hotp->gen(7)); $this->assertSame("73399871", $hotp->gen(8)); $this->assertSame("45520489", $hotp->gen(9)); }