cvs: qaweb / write-test.php
| From: | Nuno Lopes | Date: | Fri, 14 Sep 2007 16:02:23 +0000 |
| Subject: | cvs: qaweb / write-test.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-45998@lists.php.net to get a copy of this message | ||
nlopess Fri Sep 14 16:02:23 2007 UTC
Modified files:
/qaweb write-test.php
Log:
add %a EXPECTF scanner
http://cvs.php.net/viewvc.cgi/qaweb/write-test.php?r1=1.14&r2=1.15&diff_format=u
Index: qaweb/write-test.php
diff -u qaweb/write-test.php:1.14 qaweb/write-test.php:1.15
--- qaweb/write-test.php:1.14 Wed Jul 25 14:04:38 2007
+++ qaweb/write-test.php Fri Sep 14 16:02:23 2007
@@ -3,7 +3,7 @@
$TITLE = "Writing Tests [PHP-QAT: Quality Assurance Team]";
$SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__));
-/* $Id: write-test.php,v 1.14 2007/07/25 14:04:38 nlopess Exp $ */
+/* $Id: write-test.php,v 1.15 2007/09/14 16:02:23 nlopess Exp $ */
common_header();
?>
@@ -265,7 +265,8 @@
EXPECTF instead of EXPECT. From time to time the algorithm used for shuffle
changed and sometimes the machine used to execute the code has influence
on the result of shuffle. But it always returns a three character string
-detectable by %s. Other scan-able forms are %i for integers, %d for numbers
+detectable by %s (that matches any string until the end of the line). Other scan-able
+forms are %a for any amount of chars (at least one), %i for integers, %d for numbers
only, %f for floating point values, %c for single characters, %x for
hexadecimal values, %w for any number of whitespace characters and %e for
DIRECTORY_SEPARATOR ('\' or '/').</p>
@@ -281,7 +282,7 @@
var_dump($s);
?>
--EXPECTF--
-string(3) %s
+string(3) "%s"
string(3) "123"
</pre>