cvs: phpruntests /tests/testcase/sections/outputsections rtExpectFSectionTest.php
| From: | Zoe Slattery | Date: | Wed, 13 May 2009 16:58:10 +0000 |
| Subject: | cvs: phpruntests /tests/testcase/sections/outputsections rtExpectFSectionTest.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57777@lists.php.net to get a copy of this message | ||
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()
{