Re: cvs: php-src /ext/standard/tests/filters basic.phpt
| From: | Marcus Boerger | Date: | Sun, 26 Sep 2004 20:05:31 +0000 |
| Subject: | Re: cvs: php-src /ext/standard/tests/filters basic.phpt | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-28787@lists.php.net to get a copy of this message | ||
Hello Ilia,
Sunday, September 26, 2004, 9:12:07 PM, you wrote:
> iliaa Sun Sep 26 15:12:07 2004 EDT
> Modified files:
> /php-src/ext/standard/tests/filters basic.phpt
> Log:
> fixed test output.
>
> http://cvs.php.net/diff.php/php-src/ext/standard/tests/filters/basic.phpt?r1=1.1&r2=1.2&ty=u
> Index: php-src/ext/standard/tests/filters/basic.phpt
> diff -u php-src/ext/standard/tests/filters/basic.phpt:1.1
> php-src/ext/standard/tests/filters/basic.phpt:1.2
> --- php-src/ext/standard/tests/filters/basic.phpt:1.1 Mon Feb 17 20:24:41 2003
> +++ php-src/ext/standard/tests/filters/basic.phpt Sun Sep 26 15:12:06 2004
> @@ -29,16 +29,16 @@
> ?>
> --EXPECT--
> filter: string.rot13
> -bool(true)
> +resource(5) of type (stream filter)
Don't do this. The resource identifier might not always be the same.
Instead use the following:
--EXPECTF--
resource(%d) of type (stream filter)
Notice the F in the first line and '%d' instead of the hard coded number.
> string(12) "Uryyb Gurer!"
> filter: string.toupper
> -bool(true)
> +resource(7) of type (stream filter)
> string(12) "HELLO THERE!"
> filter: string.tolower
> -bool(true)
> +resource(9) of type (stream filter)
> string(12) "hello there!"
> filter: string.rot13
> -bool(true)
> +resource(11) of type (stream filter)
> filter: string.toupper
> -bool(true)
> -string(12) "URYYB GURER!"
> +resource(12) of type (stream filter)
> +string(12) "URYYB GURER!"
> \ No newline at end of file
--
Best regards,
Marcus mailto:helly@php.net