cvs: phpruntests /tests/configuration rtIniAsCommandLineArgsTest.php
| From: | Zoe Slattery | Date: | Sun, 14 Jun 2009 14:28:29 +0000 |
| Subject: | cvs: phpruntests /tests/configuration rtIniAsCommandLineArgsTest.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-58711@lists.php.net to get a copy of this message | ||
zoe Sun Jun 14 14:28:29 2009 UTC
Modified files:
/phpruntests/tests/configuration rtIniAsCommandLineArgsTest.php
Log:
another bug fix
http://cvs.php.net/viewvc.cgi/phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php?r1=1.3&r2=1.4&diff_format=u
Index: phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php
diff -u phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php:1.3
phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php:1.4
--- phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php:1.3 Sun Jun 14 10:38:30 2009
+++ phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php Sun Jun 14 14:28:28 2009
@@ -54,24 +54,29 @@
$addStr = $iniSet->settingsToArguments(array('af'),
$iniSet->getBasePhpDArgs());
}
- /**
- * @expectedException rtUnknownIniSettingException
- */
- public function testInvalidArg2()
+
+ public function testValidDoubleEquals()
{
$iniSet = new rtIniAsCommandLineArgs();
$iniSet->setBase();
- $addStr = $iniSet->settingsToArguments(array('af=be=blah'),
$iniSet->getBasePhpDArgs());
+ $addStr = $iniSet->settingsToArguments(array('af=='),
$iniSet->getBasePhpDArgs());
+ $last3= addslashes(substr($addStr, -3));
+
+ $this->assertEquals('==\"', $last3);
}
- public function testValidDoubleEquals()
+ public function testValidComplex()
{
$iniSet = new rtIniAsCommandLineArgs();
$iniSet->setBase();
- $addStr = $iniSet->settingsToArguments(array('af=='),
$iniSet->getBasePhpDArgs());
+ $addStr =
$iniSet->settingsToArguments(array('pdo.dsn.mysql="mysql:dbname=phptest;socket=/tmp/mysql.sock"
+ '), $iniSet->getBasePhpDArgs());
+
$last3= addslashes(substr($addStr, -3));
- $this->assertEquals('==\"', $last3);
+ $this->assertEquals('k\"\"', $last3);
}
+
+
}
?>