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:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user