com php-src: Fix tokenizer test to not depend on specific token numbers: ext/tokenizer/tests/bug60097.phpt
| From: | Nikita Popov | Date: | Tue, 26 Aug 2014 21:36:53 +0000 |
| Subject: | com php-src: Fix tokenizer test to not depend on specific token numbers: ext/tokenizer/tests/bug60097.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81134@lists.php.net to get a copy of this message | ||
Commit: e7f252652f6a3a54dfde5b66d778041f40c010de
Author: Nikita Popov <nikic@php.net> Tue, 26 Aug 2014 22:50:04 +0200
Parents: f8abb9a462170a043242e5c63bba98ad9946fcee
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e7f252652f6a3a54dfde5b66d778041f40c010de
Log:
Fix tokenizer test to not depend on specific token numbers
Changed paths:
M ext/tokenizer/tests/bug60097.phpt
Diff:
diff --git a/ext/tokenizer/tests/bug60097.phpt b/ext/tokenizer/tests/bug60097.phpt
index c3f417a..e628dee 100644
--- a/ext/tokenizer/tests/bug60097.phpt
+++ b/ext/tokenizer/tests/bug60097.phpt
@@ -1,5 +1,7 @@
--TEST--
Bug 60097: token_get_all fails to lex nested heredoc
+--SKIPIF--
+<?php if (!extension_loaded("tokenizer")) print "skip"; ?>
--FILE--
<?php
@@ -12,12 +14,12 @@ DOC1;
'));
?>
---EXPECT--
+--EXPECTF--
array(14) {
[0]=>
array(3) {
[0]=>
- int(376)
+ int(%d)
[1]=>
string(6) "<?php
"
@@ -27,7 +29,7 @@ array(14) {
[1]=>
array(3) {
[0]=>
- int(380)
+ int(%d)
[1]=>
string(8) "<<<DOC1
"
@@ -37,7 +39,7 @@ array(14) {
[2]=>
array(3) {
[0]=>
- int(383)
+ int(%d)
[1]=>
string(1) "{"
[2]=>
@@ -46,7 +48,7 @@ array(14) {
[3]=>
array(3) {
[0]=>
- int(312)
+ int(%d)
[1]=>
string(2) "$s"
[2]=>
@@ -57,7 +59,7 @@ array(14) {
[5]=>
array(3) {
[0]=>
- int(380)
+ int(%d)
[1]=>
string(8) "<<<DOC2
"
@@ -67,7 +69,7 @@ array(14) {
[6]=>
array(3) {
[0]=>
- int(381)
+ int(%d)
[1]=>
string(4) "DOC2"
[2]=>
@@ -76,7 +78,7 @@ array(14) {
[7]=>
array(3) {
[0]=>
- int(379)
+ int(%d)
[1]=>
string(1) "
"
@@ -90,7 +92,7 @@ array(14) {
[10]=>
array(3) {
[0]=>
- int(317)
+ int(%d)
[1]=>
string(1) "
"
@@ -100,7 +102,7 @@ array(14) {
[11]=>
array(3) {
[0]=>
- int(381)
+ int(%d)
[1]=>
string(4) "DOC1"
[2]=>
@@ -111,7 +113,7 @@ array(14) {
[13]=>
array(3) {
[0]=>
- int(379)
+ int(%d)
[1]=>
string(1) "
"