cvs: phpruntests /tests/configuration rtIniAsCommandLineArgsTest.php
| From: | Zoe Slattery | Date: | Sun, 14 Jun 2009 10:38:30 +0000 |
| Subject: | cvs: phpruntests /tests/configuration rtIniAsCommandLineArgsTest.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-58700@lists.php.net to get a copy of this message | ||
zoe Sun Jun 14 10:38:30 2009 UTC
Modified files:
/phpruntests/tests/configuration rtIniAsCommandLineArgsTest.php
Log:
fix to allow double equals in ini setting
http://cvs.php.net/viewvc.cgi/phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php?r1=1.2&r2=1.3&diff_format=u
Index: phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php
diff -u phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php:1.2
phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php:1.3
--- phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php:1.2 Mon Apr 20 20:50:39 2009
+++ phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php Sun Jun 14 10:38:30 2009
@@ -63,5 +63,15 @@
$iniSet->setBase();
$addStr = $iniSet->settingsToArguments(array('af=be=blah'),
$iniSet->getBasePhpDArgs());
}
+
+ public function testValidDoubleEquals()
+ {
+ $iniSet = new rtIniAsCommandLineArgs();
+ $iniSet->setBase();
+ $addStr = $iniSet->settingsToArguments(array('af=='),
$iniSet->getBasePhpDArgs());
+ $last3= addslashes(substr($addStr, -3));
+
+ $this->assertEquals('==\"', $last3);
+ }
}
?>