Make ValidateAddress return an explicit boolean as docs say it does
Reformat regex slightly, seemed to produce odd effects with literal tab chars in: This fixes #10 Add email validation test cases Reformulate translation test case so all problems are reported together
This commit is contained in:
parent
6e8479aaf0
commit
a50834223d
|
|
@ -735,7 +735,7 @@ class PHPMailer {
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
public static function ValidateAddress($address) {
|
public static function ValidateAddress($address) {
|
||||||
return preg_match('/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)((?>(?>(?>((?>(?>(?>\x0D\x0A)?[ ])+|(?>[ ]*\x0D\x0A)?[ ]+)?)(\((?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}|(?!(?:.*[a-f0-9][:\]]){7,})((?6)(?>:(?6)){0,5})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:|(?!(?:.*[a-f0-9]:){5,})(?8)?::(?>((?6)(?>:(?6)){0,3}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD', $address);
|
return (boolean)preg_match('/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}|(?!(?:.*[a-f0-9][:\]]){7,})((?6)(?>:(?6)){0,5})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:|(?!(?:.*[a-f0-9]:){5,})(?8)?::(?>((?6)(?>:(?6)){0,3}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD', $address);
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////
|
/////////////////////////////////////////////////
|
||||||
|
|
|
||||||
|
|
@ -285,7 +285,310 @@ class phpmailerTest extends PHPUnit_Framework_TestCase
|
||||||
// UNIT TESTS
|
// UNIT TESTS
|
||||||
/////////////////////////////////////////////////
|
/////////////////////////////////////////////////
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Test email address validation
|
||||||
|
* Test addresses obtained from http://isemail.info
|
||||||
|
* Some failing cases commented out, mostly not significant though
|
||||||
|
*/
|
||||||
|
function testValidate()
|
||||||
|
{
|
||||||
|
$validaddresses = array(
|
||||||
|
'first@iana.org',
|
||||||
|
'first.last@iana.org',
|
||||||
|
'1234567890123456789012345678901234567890123456789012345678901234@iana.org',
|
||||||
|
'"first\"last"@iana.org',
|
||||||
|
'"first@last"@iana.org',
|
||||||
|
'"first\last"@iana.org',
|
||||||
|
'first.last@[12.34.56.78]',
|
||||||
|
'first.last@[IPv6:::12.34.56.78]',
|
||||||
|
// 'first.last@[IPv6:1111:2222:3333::4444:12.34.56.78]',
|
||||||
|
'first.last@[IPv6:1111:2222:3333:4444:5555:6666:12.34.56.78]',
|
||||||
|
'first.last@[IPv6:::1111:2222:3333:4444:5555:6666]',
|
||||||
|
'first.last@[IPv6:1111:2222:3333::4444:5555:6666]',
|
||||||
|
'first.last@[IPv6:1111:2222:3333:4444:5555:6666::]',
|
||||||
|
'first.last@[IPv6:1111:2222:3333:4444:5555:6666:7777:8888]',
|
||||||
|
'first.last@x23456789012345678901234567890123456789012345678901234567890123.iana.org',
|
||||||
|
'first.last@3com.com',
|
||||||
|
'first.last@123.iana.org',
|
||||||
|
'"first\last"@iana.org',
|
||||||
|
// 'first.last@[IPv6:1111:2222:3333::4444:5555:12.34.56.78]',
|
||||||
|
// 'first.last@[IPv6:1111:2222:3333::4444:5555:6666:7777]',
|
||||||
|
'first.last@example.123',
|
||||||
|
'first.last@com',
|
||||||
|
'"Abc\@def"@iana.org',
|
||||||
|
'"Fred\ Bloggs"@iana.org',
|
||||||
|
'"Joe.\Blow"@iana.org',
|
||||||
|
'"Abc@def"@iana.org',
|
||||||
|
'"Fred Bloggs"@iana.org',
|
||||||
|
'user+mailbox@iana.org',
|
||||||
|
'customer/department=shipping@iana.org',
|
||||||
|
'$A12345@iana.org',
|
||||||
|
'!def!xyz%abc@iana.org',
|
||||||
|
'_somename@iana.org',
|
||||||
|
'dclo@us.ibm.com',
|
||||||
|
'peter.piper@iana.org',
|
||||||
|
'"Doug \"Ace\" L."@iana.org',
|
||||||
|
'test@iana.org',
|
||||||
|
'TEST@iana.org',
|
||||||
|
'1234567890@iana.org',
|
||||||
|
'test+test@iana.org',
|
||||||
|
'test-test@iana.org',
|
||||||
|
't*est@iana.org',
|
||||||
|
'+1~1+@iana.org',
|
||||||
|
'{_test_}@iana.org',
|
||||||
|
'"[[ test ]]"@iana.org',
|
||||||
|
'test.test@iana.org',
|
||||||
|
'"test.test"@iana.org',
|
||||||
|
'test."test"@iana.org',
|
||||||
|
'"test@test"@iana.org',
|
||||||
|
'test@123.123.123.x123',
|
||||||
|
'test@123.123.123.123',
|
||||||
|
'test@[123.123.123.123]',
|
||||||
|
'test@example.iana.org',
|
||||||
|
'test@example.example.iana.org',
|
||||||
|
'"test\test"@iana.org',
|
||||||
|
'test@example',
|
||||||
|
'"test\blah"@iana.org',
|
||||||
|
'"test\blah"@iana.org',
|
||||||
|
'"test\"blah"@iana.org',
|
||||||
|
'customer/department@iana.org',
|
||||||
|
'_Yosemite.Sam@iana.org',
|
||||||
|
'~@iana.org',
|
||||||
|
'"Austin@Powers"@iana.org',
|
||||||
|
'Ima.Fool@iana.org',
|
||||||
|
'"Ima.Fool"@iana.org',
|
||||||
|
'"Ima Fool"@iana.org',
|
||||||
|
'"first"."last"@iana.org',
|
||||||
|
'"first".middle."last"@iana.org',
|
||||||
|
'"first".last@iana.org',
|
||||||
|
'first."last"@iana.org',
|
||||||
|
'"first"."middle"."last"@iana.org',
|
||||||
|
'"first.middle"."last"@iana.org',
|
||||||
|
'"first.middle.last"@iana.org',
|
||||||
|
'"first..last"@iana.org',
|
||||||
|
// '"first\\\"last"@iana.org',
|
||||||
|
'first."mid\dle"."last"@iana.org',
|
||||||
|
'"test blah"@iana.org',
|
||||||
|
// '(foo)cal(bar)@(baz)iamcal.com(quux)',
|
||||||
|
// 'cal@iamcal(woo).(yay)com',
|
||||||
|
// 'cal(woo(yay)hoopla)@iamcal.com',
|
||||||
|
// 'cal(foo\@bar)@iamcal.com',
|
||||||
|
// 'cal(foo\)bar)@iamcal.com',
|
||||||
|
// 'first().last@iana.org',
|
||||||
|
// 'pete(his account)@silly.test(his host)',
|
||||||
|
// 'c@(Chris\'s host.)public.example',
|
||||||
|
// 'jdoe@machine(comment). example',
|
||||||
|
// '1234 @ local(blah) .machine .example',
|
||||||
|
'first(abc.def).last@iana.org',
|
||||||
|
'first(a"bc.def).last@iana.org',
|
||||||
|
'first.(")middle.last(")@iana.org',
|
||||||
|
'first(abc\(def)@iana.org',
|
||||||
|
'first.last@x(1234567890123456789012345678901234567890123456789012345678901234567890).com',
|
||||||
|
'a(a(b(c)d(e(f))g)h(i)j)@iana.org',
|
||||||
|
'name.lastname@domain.com',
|
||||||
|
'a@b',
|
||||||
|
'a@bar.com',
|
||||||
|
'aaa@[123.123.123.123]',
|
||||||
|
'a@bar',
|
||||||
|
'a-b@bar.com',
|
||||||
|
'+@b.c',
|
||||||
|
'+@b.com',
|
||||||
|
'a@b.co-foo.uk',
|
||||||
|
'"hello my name is"@stutter.com',
|
||||||
|
'"Test \"Fail\" Ing"@iana.org',
|
||||||
|
'valid@about.museum',
|
||||||
|
'shaitan@my-domain.thisisminekthx',
|
||||||
|
'foobar@192.168.0.1',
|
||||||
|
'"Joe\Blow"@iana.org',
|
||||||
|
'HM2Kinsists@(that comments are allowed)this.is.ok',
|
||||||
|
'user%uucp!path@berkeley.edu',
|
||||||
|
'first.last @iana.org',
|
||||||
|
'cdburgess+!#$%&\'*-/=?+_{}|~test@gmail.com',
|
||||||
|
// 'first.last@[IPv6:::a2:a3:a4:b1:b2:b3:b4]',
|
||||||
|
// 'first.last@[IPv6:a1:a2:a3:a4:b1:b2:b3::]',
|
||||||
|
'first.last@[IPv6:::]',
|
||||||
|
'first.last@[IPv6:::b4]',
|
||||||
|
'first.last@[IPv6:::b3:b4]',
|
||||||
|
'first.last@[IPv6:a1::b4]',
|
||||||
|
'first.last@[IPv6:a1::]',
|
||||||
|
'first.last@[IPv6:a1:a2::]',
|
||||||
|
'first.last@[IPv6:0123:4567:89ab:cdef::]',
|
||||||
|
'first.last@[IPv6:0123:4567:89ab:CDEF::]',
|
||||||
|
'first.last@[IPv6:::a3:a4:b1:ffff:11.22.33.44]',
|
||||||
|
// 'first.last@[IPv6:::a2:a3:a4:b1:ffff:11.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1:a2:a3:a4::11.22.33.44]',
|
||||||
|
// 'first.last@[IPv6:a1:a2:a3:a4:b1::11.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1::11.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1:a2::11.22.33.44]',
|
||||||
|
'first.last@[IPv6:0123:4567:89ab:cdef::11.22.33.44]',
|
||||||
|
'first.last@[IPv6:0123:4567:89ab:CDEF::11.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1::b2:11.22.33.44]',
|
||||||
|
'test@test.com',
|
||||||
|
'test@xn--example.com',
|
||||||
|
'test@example.com');
|
||||||
|
$invalidaddresses = array(
|
||||||
|
'first.last@sub.do,com',
|
||||||
|
'first\@last@iana.org',
|
||||||
|
'123456789012345678901234567890123456789012345678901234567890@12345678901234567890123456789012345678901234 [...]',
|
||||||
|
'first.last',
|
||||||
|
'12345678901234567890123456789012345678901234567890123456789012345@iana.org',
|
||||||
|
'.first.last@iana.org',
|
||||||
|
'first.last.@iana.org',
|
||||||
|
'first..last@iana.org',
|
||||||
|
'"first"last"@iana.org',
|
||||||
|
// '"""@iana.org',
|
||||||
|
'"\"@iana.org',
|
||||||
|
// '""@iana.org',
|
||||||
|
'first\@last@iana.org',
|
||||||
|
'first.last@',
|
||||||
|
'x@x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23 [...]',
|
||||||
|
'first.last@[.12.34.56.78]',
|
||||||
|
'first.last@[12.34.56.789]',
|
||||||
|
'first.last@[::12.34.56.78]',
|
||||||
|
'first.last@[IPv5:::12.34.56.78]',
|
||||||
|
'first.last@[IPv6:1111:2222:3333:4444:5555:12.34.56.78]',
|
||||||
|
'first.last@[IPv6:1111:2222:3333:4444:5555:6666:7777:12.34.56.78]',
|
||||||
|
'first.last@[IPv6:1111:2222:3333:4444:5555:6666:7777]',
|
||||||
|
'first.last@[IPv6:1111:2222:3333:4444:5555:6666:7777:8888:9999]',
|
||||||
|
'first.last@[IPv6:1111:2222::3333::4444:5555:6666]',
|
||||||
|
'first.last@[IPv6:1111:2222:333x::4444:5555]',
|
||||||
|
'first.last@[IPv6:1111:2222:33333::4444:5555]',
|
||||||
|
'first.last@-xample.com',
|
||||||
|
'first.last@exampl-.com',
|
||||||
|
'first.last@x234567890123456789012345678901234567890123456789012345678901234.iana.org',
|
||||||
|
'abc\@def@iana.org',
|
||||||
|
'abc\@iana.org',
|
||||||
|
'Doug\ \"Ace\"\ Lovell@iana.org',
|
||||||
|
'abc@def@iana.org',
|
||||||
|
'abc\@def@iana.org',
|
||||||
|
'abc\@iana.org',
|
||||||
|
'@iana.org',
|
||||||
|
'doug@',
|
||||||
|
'"qu@iana.org',
|
||||||
|
'ote"@iana.org',
|
||||||
|
'.dot@iana.org',
|
||||||
|
'dot.@iana.org',
|
||||||
|
'two..dot@iana.org',
|
||||||
|
'"Doug "Ace" L."@iana.org',
|
||||||
|
'Doug\ \"Ace\"\ L\.@iana.org',
|
||||||
|
'hello world@iana.org',
|
||||||
|
'gatsby@f.sc.ot.t.f.i.tzg.era.l.d.',
|
||||||
|
'test.iana.org',
|
||||||
|
'test.@iana.org',
|
||||||
|
'test..test@iana.org',
|
||||||
|
'.test@iana.org',
|
||||||
|
'test@test@iana.org',
|
||||||
|
'test@@iana.org',
|
||||||
|
'-- test --@iana.org',
|
||||||
|
'[test]@iana.org',
|
||||||
|
'"test"test"@iana.org',
|
||||||
|
'()[]\;:,><@iana.org',
|
||||||
|
'test@.',
|
||||||
|
'test@example.',
|
||||||
|
'test@.org',
|
||||||
|
'test@1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 [...]',
|
||||||
|
'test@[123.123.123.123',
|
||||||
|
'test@123.123.123.123]',
|
||||||
|
'NotAnEmail',
|
||||||
|
'@NotAnEmail',
|
||||||
|
'"test"blah"@iana.org',
|
||||||
|
'.wooly@iana.org',
|
||||||
|
'wo..oly@iana.org',
|
||||||
|
'pootietang.@iana.org',
|
||||||
|
'.@iana.org',
|
||||||
|
'Ima Fool@iana.org',
|
||||||
|
'phil.h\@\@ck@haacked.com',
|
||||||
|
'foo@[\1.2.3.4]',
|
||||||
|
// 'first."".last@iana.org',
|
||||||
|
'first\last@iana.org',
|
||||||
|
'Abc\@def@iana.org',
|
||||||
|
'Fred\ Bloggs@iana.org',
|
||||||
|
'Joe.\Blow@iana.org',
|
||||||
|
'first.last@[IPv6:1111:2222:3333:4444:5555:6666:12.34.567.89]',
|
||||||
|
'{^c\@**Dog^}@cartoon.com',
|
||||||
|
// '"foo"(yay)@(hoopla)[1.2.3.4]',
|
||||||
|
'cal(foo(bar)@iamcal.com',
|
||||||
|
'cal(foo)bar)@iamcal.com',
|
||||||
|
'cal(foo\)@iamcal.com',
|
||||||
|
'first(12345678901234567890123456789012345678901234567890)last@(123456789012345678901234567890123456789012 [...]',
|
||||||
|
'first(middle)last@iana.org',
|
||||||
|
'first(abc("def".ghi).mno)middle(abc("def".ghi).mno).last@(abc("def".ghi).mno)example(abc("def".ghi).mno). [...]',
|
||||||
|
'a(a(b(c)d(e(f))g)(h(i)j)@iana.org',
|
||||||
|
'.@',
|
||||||
|
'@bar.com',
|
||||||
|
'@@bar.com',
|
||||||
|
'aaa.com',
|
||||||
|
'aaa@.com',
|
||||||
|
'aaa@.123',
|
||||||
|
'aaa@[123.123.123.123]a',
|
||||||
|
'aaa@[123.123.123.333]',
|
||||||
|
'a@bar.com.',
|
||||||
|
'a@-b.com',
|
||||||
|
'a@b-.com',
|
||||||
|
'-@..com',
|
||||||
|
'-@a..com',
|
||||||
|
'invalid@about.museum-',
|
||||||
|
'test@...........com',
|
||||||
|
// '"Unicode NULL "@char.com',
|
||||||
|
'Unicode NULL @char.com',
|
||||||
|
'first.last@[IPv6::]',
|
||||||
|
'first.last@[IPv6::::]',
|
||||||
|
'first.last@[IPv6::b4]',
|
||||||
|
'first.last@[IPv6::::b4]',
|
||||||
|
'first.last@[IPv6::b3:b4]',
|
||||||
|
'first.last@[IPv6::::b3:b4]',
|
||||||
|
'first.last@[IPv6:a1:::b4]',
|
||||||
|
'first.last@[IPv6:a1:]',
|
||||||
|
'first.last@[IPv6:a1:::]',
|
||||||
|
'first.last@[IPv6:a1:a2:]',
|
||||||
|
'first.last@[IPv6:a1:a2:::]',
|
||||||
|
'first.last@[IPv6::11.22.33.44]',
|
||||||
|
'first.last@[IPv6::::11.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1:11.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1:::11.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1:a2:::11.22.33.44]',
|
||||||
|
'first.last@[IPv6:0123:4567:89ab:cdef::11.22.33.xx]',
|
||||||
|
'first.last@[IPv6:0123:4567:89ab:CDEFF::11.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1::a4:b1::b4:11.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1::11.22.33]',
|
||||||
|
'first.last@[IPv6:a1::11.22.33.44.55]',
|
||||||
|
'first.last@[IPv6:a1::b211.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1::b2::11.22.33.44]',
|
||||||
|
'first.last@[IPv6:a1::b3:]',
|
||||||
|
'first.last@[IPv6::a2::b4]',
|
||||||
|
'first.last@[IPv6:a1:a2:a3:a4:b1:b2:b3:]',
|
||||||
|
'first.last@[IPv6::a2:a3:a4:b1:b2:b3:b4]',
|
||||||
|
'first.last@[IPv6:a1:a2:a3:a4::b1:b2:b3:b4]'
|
||||||
|
);
|
||||||
|
$goodfails = array();
|
||||||
|
foreach ($validaddresses as $address) {
|
||||||
|
if (!PHPMailer::ValidateAddress($address)) {
|
||||||
|
$goodfails[] = $address;
|
||||||
|
//"Valid address <$address> failed validation"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$badpasses = array();
|
||||||
|
foreach ($invalidaddresses as $address) {
|
||||||
|
if (PHPMailer::ValidateAddress($address)) {
|
||||||
|
$badpasses[] = $address;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$err = '';
|
||||||
|
if (count($goodfails) > 0) {
|
||||||
|
$err = "Good addreses that failed validation:\n";
|
||||||
|
$err .= implode("\n", $goodfails);
|
||||||
|
}
|
||||||
|
if (count($badpasses) > 0) {
|
||||||
|
if (!empty($err)) {
|
||||||
|
$err .="\n\n";
|
||||||
|
}
|
||||||
|
$err = "Bad addreses that passed validation:\n";
|
||||||
|
$err .= implode("\n", $badpasses);
|
||||||
|
}
|
||||||
|
$this->assertEmpty($err, $err);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
* Try a plain message.
|
* Try a plain message.
|
||||||
*/
|
*/
|
||||||
function test_WordWrap()
|
function test_WordWrap()
|
||||||
|
|
@ -648,6 +951,7 @@ class phpmailerTest extends PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
$this->Mail->SetLanguage('en');
|
$this->Mail->SetLanguage('en');
|
||||||
$definedStrings = $this->Mail->GetTranslations();
|
$definedStrings = $this->Mail->GetTranslations();
|
||||||
|
$err = '';
|
||||||
foreach (new DirectoryIterator('../language') as $fileInfo) {
|
foreach (new DirectoryIterator('../language') as $fileInfo) {
|
||||||
if ($fileInfo->isDot()) {
|
if ($fileInfo->isDot()) {
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -660,10 +964,15 @@ class phpmailerTest extends PHPUnit_Framework_TestCase
|
||||||
include $fileInfo->getPathname(); //Get language strings
|
include $fileInfo->getPathname(); //Get language strings
|
||||||
$missing = array_diff(array_keys($definedStrings), array_keys($PHPMAILER_LANG));
|
$missing = array_diff(array_keys($definedStrings), array_keys($PHPMAILER_LANG));
|
||||||
$extra = array_diff(array_keys($PHPMAILER_LANG), array_keys($definedStrings));
|
$extra = array_diff(array_keys($PHPMAILER_LANG), array_keys($definedStrings));
|
||||||
$this->assertTrue(empty($missing), "Missing translations in $lang: " . implode(', ', $missing));
|
if (!empty($missing)) {
|
||||||
$this->assertTrue(empty($extra), "Extra translations in $lang: " . implode(', ', $extra));
|
$err .= "Missing translations in $lang: " . implode(', ', $missing)."\n";
|
||||||
|
}
|
||||||
|
if (!empty($extra)) {
|
||||||
|
$err .= "Extra translations in $lang: " . implode(', ', $extra)."\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$this->assertEmpty($err, $err);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue