mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-07 09:32:47 +01:00
PSR2 ClassDeclaration
This commit is contained in:
@@ -103,7 +103,7 @@ class CMailFileTest extends PHPUnit_Framework_TestCase
|
||||
$db=$this->savdb;
|
||||
|
||||
$conf->global->MAIN_DISABLE_ALL_MAILS=1; // If I comment/remove this lien, unit test still works alone but failed when ran from AllTest. Don't know why.
|
||||
|
||||
|
||||
print __METHOD__."\n";
|
||||
}
|
||||
/**
|
||||
@@ -177,23 +177,22 @@ class CMailFileTest extends PHPUnit_Framework_TestCase
|
||||
$result=$localobject->getValidAddress($src,3,1);
|
||||
print __METHOD__." result=".$result."\n";
|
||||
$this->assertEquals($result,'"=?UTF-8?B?Sm9obiBEb2U=?=" <john@doe.com>');
|
||||
|
||||
|
||||
$src='John Doe <john@doe.com>';
|
||||
$result=$localobject->getValidAddress($src,4);
|
||||
print __METHOD__." result=".$result."\n";
|
||||
$this->assertEquals($result,'John Doe');
|
||||
|
||||
|
||||
$src='John Doe <john@doe.com>, John Doe2 <john@doe3.com>, John Doe3 <john@doe2.com>';
|
||||
$result=$localobject->getValidAddress($src,4);
|
||||
print __METHOD__." result=".$result."\n";
|
||||
$this->assertEquals($result,'John Doe,John Doe2,John Doe3');
|
||||
|
||||
|
||||
$src='John Doe <john@doe.com>, John Doe2 <john@doe3.com>, John Doe3 <john@doe2.com>';
|
||||
$result=$localobject->getValidAddress($src,4,0,2);
|
||||
print __METHOD__." result=".$result."\n";
|
||||
$this->assertEquals($result,'John Doe,John Doe2...');
|
||||
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user