1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/tokenizer/tests/003.phpt
2019-03-11 11:32:20 +01:00

40 lines
486 B
PHP

--TEST--
token_get_all() and wrong parameters
--SKIPIF--
<?php if (!extension_loaded("tokenizer")) print "skip"; ?>
--FILE--
<?php
var_dump(token_get_all(""));
var_dump(token_get_all(0));
var_dump(token_get_all(-1));
echo "Done\n";
?>
--EXPECTF--
array(0) {
}
array(1) {
[0]=>
array(3) {
[0]=>
int(%d)
[1]=>
string(1) "0"
[2]=>
int(1)
}
}
array(1) {
[0]=>
array(3) {
[0]=>
int(%d)
[1]=>
string(2) "-1"
[2]=>
int(1)
}
}
Done