zoe             Thu, 16 Jul 2009 16:02:44 +0000

URL: http://svn.php.net/viewvc?view=revision&revision=284193

Changed paths:
        U   
php/phpruntests/trunk/tests/testcase/sections/configurationsections/rtIniSectionTest.php

Log:
fixing {PWD} in INI sections

Modified: 
php/phpruntests/trunk/tests/testcase/sections/configurationsections/rtIniSectionTest.php
===================================================================
--- 
php/phpruntests/trunk/tests/testcase/sections/configurationsections/rtIniSectionTest.php
    2009-07-16 16:01:01 UTC (rev 284192)
+++ 
php/phpruntests/trunk/tests/testcase/sections/configurationsections/rtIniSectionTest.php
    2009-07-16 16:02:44 UTC (rev 284193)
@@ -7,11 +7,21 @@
 {
     public function testCreateInstance()
     {
-        $iniSection = rtIniSection::getInstance('INI', 
array('error_reporting=E_ALL | E_STRICT | E_DEPRECATED', 'assert.active = 1'));
+        $iniSection = rtIniSection::getInstance('INI', 
array('error_reporting=E_ALL | E_STRICT | E_DEPRECATED', 'assert.active = 1'));
+        $iniSection->substitutePWD('a-file-name');
         $inilist = $iniSection->getCommandLineArguments();

         $this->assertEquals('error_reporting=E_ALL | E_STRICT | E_DEPRECATED', 
$inilist[0]);
         $this->assertEquals('assert.active = 1', $inilist[1]);
     }
+    public function testSubtitutePWD()
+    {
+        $iniSection = rtIniSection::getInstance('INI', 
array('include_path={PWD}'));
+        $afile = __FILE__;
+        $iniSection->substitutePWD($afile);
+        $inilist = $iniSection->getCommandLineArguments();
+
+        $this->assertEquals('include_path=' . dirname($afile), $inilist[0]);
+    }
 }
 ?>

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

Reply via email to