diff options
author | Nikita Popov <nikic@php.net> | 2014-08-26 22:50:04 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2014-08-26 23:36:53 +0200 |
commit | e7f252652f6a3a54dfde5b66d778041f40c010de (patch) | |
tree | 41ccef89a1db8e701d1df6f5314b9e11fe5a0ee5 /ext/tokenizer/tests/bug60097.phpt | |
parent | f8abb9a462170a043242e5c63bba98ad9946fcee (diff) | |
download | php-git-e7f252652f6a3a54dfde5b66d778041f40c010de.tar.gz |
Fix tokenizer test to not depend on specific token numbers
Diffstat (limited to 'ext/tokenizer/tests/bug60097.phpt')
-rw-r--r-- | ext/tokenizer/tests/bug60097.phpt | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/ext/tokenizer/tests/bug60097.phpt b/ext/tokenizer/tests/bug60097.phpt index c3f417a7d5..e628dee1ef 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) " " |