0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

token test

This commit is contained in:
David Goodwin 2023-12-24 19:39:47 +00:00
parent b65f7ef627
commit a368104fad

19
tests/TotpPfTest.php Normal file
View File

@ -0,0 +1,19 @@
<?php
use PHPUnit\Framework\TestCase;
class TotpPfTest extends TestCase
{
public function testBasic()
{
$x = new TotpPf('mailbox');
$array = $x->generate('test@example.com');
$this->assertIsArray($array);
$this->assertIsString($array[0]);
$this->assertIsString($array[1]);
}
}