xref: /php-src/ext/tokenizer/tests/003.phpt (revision 74859783)
1--TEST--
2token_get_all() and wrong parameters
3--EXTENSIONS--
4tokenizer
5--FILE--
6<?php
7
8var_dump(token_get_all(""));
9var_dump(token_get_all(0));
10var_dump(token_get_all(-1));
11
12echo "Done\n";
13?>
14--EXPECTF--
15array(0) {
16}
17array(1) {
18  [0]=>
19  array(3) {
20    [0]=>
21    int(%d)
22    [1]=>
23    string(1) "0"
24    [2]=>
25    int(1)
26  }
27}
28array(1) {
29  [0]=>
30  array(3) {
31    [0]=>
32    int(%d)
33    [1]=>
34    string(2) "-1"
35    [2]=>
36    int(1)
37  }
38}
39Done
40