spfcheck : Add catching of sign (+-?~) before parts of SPF record

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@6030 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2020-08-21 09:00:29 +00:00
parent d52314e75b
commit 283109bef4
2 changed files with 74 additions and 25 deletions

View File

@@ -208,6 +208,21 @@ class spfcheckTest extends PHPUnit_Framework_TestCase
)));
}
public function test_recordsWithPlus ()
{
$spfcheck = new spfcheck ();
$res = $spfcheck->getRecords ("plus.spf.tester.fournier38.fr");
$this->assertSame ($res,
array ("plus.spf.tester.fournier38.fr" => array (
"+a" => array (),
"+mx" => array (),
"+ip4:178.33.236.5" => array ("178.33.236.5"),
"+ip4:137.74.69.64" => array ("137.74.69.64"),
"+ip4:51.254.45.81" => array ("51.254.45.81"),
"-all" => array (),
)));
}
public function test_getRecords_Unknown ()
{
$spfcheck = new spfcheck ();