zoe             Wed May 13 16:58:10 2009 UTC

  Modified files:              
    /phpruntests/tests/testcase/sections/outputsections 
                                                        
rtExpectFSectionTest.php 
  Log:
  Added support for %r
  
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/outputsections/rtExpectFSectionTest.php?r1=1.2&r2=1.3&diff_format=u
Index: 
phpruntests/tests/testcase/sections/outputsections/rtExpectFSectionTest.php
diff -u 
phpruntests/tests/testcase/sections/outputsections/rtExpectFSectionTest.php:1.2 
phpruntests/tests/testcase/sections/outputsections/rtExpectFSectionTest.php:1.3
--- 
phpruntests/tests/testcase/sections/outputsections/rtExpectFSectionTest.php:1.2 
    Fri Apr 24 09:42:02 2009
+++ phpruntests/tests/testcase/sections/outputsections/rtExpectFSectionTest.php 
Wed May 13 16:58:10 2009
@@ -76,6 +76,14 @@
 
         $this->assertEquals('Hello [+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', 
$pattern);
     }
+    
+    public function testPercentR() 
+    {
+        $expectFSection = new rtExpectFSection('EXPECTF', 
array('%unicode|string%(18) "%r\0%rMyClass%r\0%rpri_value%r\0%r"'));
+        $pattern = $expectFSection->getPattern();
+
+        $this->assertEquals('string\(18\) "(\0)MyClass(\0)pri_value(\0)"', 
$pattern);
+    }
 
     public function testPercentC() 
     {



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

Reply via email to