23 lines
695 B
PHP
23 lines
695 B
PHP
|
<?php
|
||
|
|
||
|
namespace Liuch\DmarcSrg;
|
||
|
|
||
|
class CommonTest extends \PHPUnit\Framework\TestCase
|
||
|
{
|
||
|
public function testAlignResultArray(): void
|
||
|
{
|
||
|
$this->assertCount(3, Common::$align_res);
|
||
|
$this->assertEquals('fail', Common::$align_res[0]);
|
||
|
$this->assertEquals('unknown', Common::$align_res[1]);
|
||
|
$this->assertEquals('pass', Common::$align_res[2]);
|
||
|
}
|
||
|
|
||
|
public function testDispositionArray(): void
|
||
|
{
|
||
|
$this->assertCount(3, Common::$disposition);
|
||
|
$this->assertEquals('reject', Common::$disposition[0]);
|
||
|
$this->assertEquals('quarantine', Common::$disposition[1]);
|
||
|
$this->assertEquals('none', Common::$disposition[2]);
|
||
|
}
|
||
|
}
|