mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
20 lines
343 B
PHP
20 lines
343 B
PHP
<?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]);
|
|
|
|
}
|
|
}
|