[PHP-CVS] cvs: phpruntests /tests/configuration rtIniAsCommandLineArgsTest.php

2009-06-14 Thread Zoe Slattery
zoe Sun Jun 14 10:38:30 2009 UTC

  Modified files:  
/phpruntests/tests/configurationrtIniAsCommandLineArgsTest.php 
  Log:
  fix to allow double equals in ini setting
  
http://cvs.php.net/viewvc.cgi/phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php?r1=1.2r2=1.3diff_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);
+}
 }
 ?



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: phpruntests /tests/configuration rtIniAsCommandLineArgsTest.php

2009-06-14 Thread Zoe Slattery
zoe Sun Jun 14 14:28:29 2009 UTC

  Modified files:  
/phpruntests/tests/configurationrtIniAsCommandLineArgsTest.php 
  Log:
  another bug fix
  
http://cvs.php.net/viewvc.cgi/phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php?r1=1.3r2=1.4diff_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);
 }
+
+
 }
 ?



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php