diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-09-04 08:54:07 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-09-04 08:54:07 +0200 |
| commit | 68edbbfe764cacce112ae2f40003375397ca0b52 (patch) | |
| tree | 5b55b1b9a7ccc13b3e49c2ae5059c3667fd74c45 /ext/tokenizer/tests | |
| parent | 6bd5567ce7d4d3f31ed0c9f873d2c4518448bf3a (diff) | |
| parent | ced5bb7d88b48dbc9b98a2d24e3ee586fe65651a (diff) | |
| download | php-git-68edbbfe764cacce112ae2f40003375397ca0b52.tar.gz | |
Merge branch 'PHP-7.4'
* PHP-7.4:
Add the last missing SKIPIF
Diffstat (limited to 'ext/tokenizer/tests')
| -rw-r--r-- | ext/tokenizer/tests/bad_character.phpt | 2 | ||||
| -rw-r--r-- | ext/tokenizer/tests/bug76991.phpt | 2 | ||||
| -rw-r--r-- | ext/tokenizer/tests/no_inline_html_split.phpt | 26 | ||||
| -rw-r--r-- | ext/tokenizer/tests/php_tag_only.phpt | 2 |
4 files changed, 32 insertions, 0 deletions
diff --git a/ext/tokenizer/tests/bad_character.phpt b/ext/tokenizer/tests/bad_character.phpt index 0c6b1136a6..87f0179004 100644 --- a/ext/tokenizer/tests/bad_character.phpt +++ b/ext/tokenizer/tests/bad_character.phpt @@ -1,5 +1,7 @@ --TEST-- token_get_all() produces T_BAD_CHARACTER for unexpected characters +--SKIPIF-- +<?php if (!extension_loaded("tokenizer")) print "skip tokenizer extension not enabled"; ?> --FILE-- <?php diff --git a/ext/tokenizer/tests/bug76991.phpt b/ext/tokenizer/tests/bug76991.phpt index 261abc5981..72f36cec3f 100644 --- a/ext/tokenizer/tests/bug76991.phpt +++ b/ext/tokenizer/tests/bug76991.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #76991: Incorrect tokenization of multiple invalid flexible heredoc strings +--SKIPIF-- +<?php if (!extension_loaded("tokenizer")) print "skip tokenizer extension not enabled"; ?> --FILE-- <?php diff --git a/ext/tokenizer/tests/no_inline_html_split.phpt b/ext/tokenizer/tests/no_inline_html_split.phpt new file mode 100644 index 0000000000..37608d73e0 --- /dev/null +++ b/ext/tokenizer/tests/no_inline_html_split.phpt @@ -0,0 +1,26 @@ +--TEST-- +Inline HTML should not be split at partial PHP tags +--SKIPIF-- +<?php if (!extension_loaded("tokenizer")) print "skip tokenizer extension not enabled"; ?> +--INI-- +short_open_tag=0 +--FILE-- +<?php + +var_dump(token_get_all(<<<'PHP' +Foo<?phpBar +PHP)); + +?> +--EXPECTF-- +array(1) { + [0]=> + array(3) { + [0]=> + int(%d) + [1]=> + string(11) "Foo<?phpBar" + [2]=> + int(1) + } +} diff --git a/ext/tokenizer/tests/php_tag_only.phpt b/ext/tokenizer/tests/php_tag_only.phpt index a6df7ded4d..aec11f9e16 100644 --- a/ext/tokenizer/tests/php_tag_only.phpt +++ b/ext/tokenizer/tests/php_tag_only.phpt @@ -1,5 +1,7 @@ --TEST-- Tokenization of only the <?php tag +--SKIPIF-- +<?php if (!extension_loaded("tokenizer")) print "skip tokenizer extension not enabled"; ?> --FILE-- <?php |
