Home
last modified time | relevance | path

Searched refs:token_get_all (Results 1 – 25 of 32) sorted by relevance

12

/PHP-5.4/ext/tokenizer/tests/
H A Dtoken_get_all_error.phpt2 Test token_get_all() function : error conditions
7 /* Prototype : array token_get_all(string $source)
12 echo "*** Testing token_get_all() : error conditions ***\n";
15 echo "\n-- Testing token_get_all() function with zero arguments --\n";
16 var_dump( token_get_all());
22 var_dump( token_get_all($source, $extra_arg));
27 *** Testing token_get_all() : error conditions ***
29 -- Testing token_get_all() function with zero arguments --
31 Warning: token_get_all() expects exactly 1 parameter, 0 given in %s on line %d
33 -- Testing token_get_all() function with more than expected no. of arguments --
[all …]
H A D003.phpt2 token_get_all() and wrong parameters
8 var_dump(token_get_all(array()));
9 var_dump(token_get_all(new stdClass));
10 var_dump(token_get_all(""));
11 var_dump(token_get_all(0));
12 var_dump(token_get_all(-1));
17 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d
20 Warning: token_get_all() expects parameter 1 to be string, object given in %s on line %d
H A Dtoken_get_all_variation1.phpt2 Test token_get_all() function : usage variations - unexpected values for 'source' argument
7 /* Prototype : array token_get_all(string $source)
17 echo "*** Testing token_get_all() : unexpected values for 'source' argument ***\n";
87 var_dump( token_get_all($source_values[$count]));
94 *** Testing token_get_all() : unexpected values for 'source' argument ***
205 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d
209 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d
213 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d
217 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d
221 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d
[all …]
H A Dtoken_get_all_variation18.phpt2 Test token_get_all() function : usage variations - with HTML code
7 /* Prototype : array token_get_all(string $source)
13 * Testing token_get_all() with source string containing HTML code with PHP
17 echo "*** Testing token_get_all() : 'source' string with HTML tags ***\n";
29 var_dump( token_get_all($source));
34 *** Testing token_get_all() : 'source' string with HTML tags ***
H A Dtoken_get_all_basic.phpt2 Test token_get_all() function : basic functionality
7 /* Prototype : array token_get_all(string $source)
12 echo "*** Testing token_get_all() : basic functionality ***\n";
17 var_dump( token_get_all($source) );
22 var_dump( token_get_all($source) );
27 *** Testing token_get_all() : basic functionality ***
H A Dtoken_get_all_variation14.phpt2 Test token_get_all() function : usage variations - invalid token values
7 /* Prototype : array token_get_all(string $source)
13 * Testing token_get_all() with 'source' string containing invalid/unknown token value
17 echo "*** Testing token_get_all() : with invalid/unknown tokens ***\n";
27 var_dump( token_get_all($source));
33 var_dump( token_get_all($source));
38 var_dump( token_get_all($source));
43 *** Testing token_get_all() : with invalid/unknown tokens ***
H A Dtoken_get_all_variation7.phpt2 Test token_get_all() function : usage variations - with increment/decrement operators
7 /* Prototype : array token_get_all(string $source)
18 echo "*** Testing token_get_all() : 'source' string with different increment/decrement operators **…
27 var_dump( token_get_all($source));
32 *** Testing token_get_all() : 'source' string with different increment/decrement operators ***
H A Dtoken_get_all_variation19.phpt2 Reconstructing a script using token_get_all()
11 // A php script to test token_get_all()
33 $token_array = token_get_all($phpstr);
59 // A php script to test token_get_all()
H A Dtoken_get_all_variation12.phpt2 Test token_get_all() function : usage variations - with predefined language constants
7 /* Prototype : array token_get_all(string $source)
13 * Testing token_get_all() with following predefined language constants:
22 echo "*** Testing token_get_all() : with language constants ***\n";
29 var_dump( token_get_all($source));
42 var_dump( token_get_all($source));
50 var_dump( token_get_all($source));
55 *** Testing token_get_all() : with language constants ***
H A Dtoken_get_all_variation6.phpt2 Test token_get_all() function : usage variations - with bitwise operators
7 /* Prototype : array token_get_all(string $source)
18 echo "*** Testing token_get_all() : 'source' string with different bitwise operators ***\n";
28 var_dump( token_get_all($source));
33 *** Testing token_get_all() : 'source' string with different bitwise operators ***
H A Dtoken_get_all_variation17.phpt2 Test token_get_all() function : usage variations - with exception keywords
7 /* Prototype : array token_get_all(string $source)
13 * Testing token_get_all() with different exception keywords
19 echo "*** Testing token_get_all() : with exception keywords ***\n";
36 $tokens = token_get_all($source);
42 *** Testing token_get_all() : with exception keywords ***
H A Dtoken_get_all_variation2.phpt2 Test token_get_all() function : usage variations - with different arithmetic operators
7 /* Prototype : array token_get_all(string $source)
18 echo "*** Testing token_get_all() : 'source' string with different arithmetic operators ***\n";
29 var_dump( token_get_all($source[$count]));
34 *** Testing token_get_all() : 'source' string with different arithmetic operators ***
H A Dtoken_get_all_variation9.phpt2 Test token_get_all() function : usage variations - with different types of comments
7 /* Prototype : array token_get_all(string $source)
19 echo "*** Testing token_get_all() : 'source' string with different comments ***\n";
42 var_dump( token_get_all($source));
47 *** Testing token_get_all() : 'source' string with different comments ***
H A Dtoken_get_all_variation3.phpt2 Test token_get_all() function : usage variations - with logical operators
7 /* Prototype : array token_get_all(string $source)
21 echo "*** Testing token_get_all() : 'source' string with different logical operators ***\n";
33 var_dump( token_get_all($source[$count]));
39 *** Testing token_get_all() : 'source' string with different logical operators ***
H A Dtoken_get_all_variation15.phpt2 Test token_get_all() function : usage variations - heredoc string for 'source'
9 /* Prototype : array token_get_all(string $source)
15 …* Testing token_get_all() with heredoc 'source' string with all different types of token and hered…
20 echo "*** Testing token_get_all() : with heredoc source string ***\n";
47 var_dump( token_get_all($source));
52 *** Testing token_get_all() : with heredoc source string ***
H A Dbug26463.phpt2 Bug #26463 (token_get_all() does not correctly handle semicolons after T_END_HEREDOC)
16 var_dump(token_get_all($str));
H A Dtoken_get_all_variation11.phpt2 Test token_get_all() function : usage variations - with control structure tokens
7 /* Prototype : array token_get_all(string $source)
24 echo "*** Testing token_get_all() : for control structure tokens ***\n";
40 var_dump( token_get_all($source));
53 var_dump( token_get_all($source));
65 var_dump( token_get_all($source));
74 var_dump( token_get_all($source));
79 *** Testing token_get_all() : for control structure tokens ***
H A Dtoken_get_all_variation4.phpt2 Test token_get_all() function : usage variations - with comparison operators
7 /* Prototype : array token_get_all(string $source)
19 echo "*** Testing token_get_all() : 'source' string with different comparison operators ***\n";
34 var_dump( token_get_all($source));
39 *** Testing token_get_all() : 'source' string with different comparison operators ***
H A Dtoken_get_all_variation16.phpt2 Test token_get_all() function : usage variations - with function constructs
7 /* Prototype : array token_get_all(string $source)
13 * Testing token_get_all() with different function keywords
23 echo "*** Testing token_get_all() : with different function constructs ***\n";
53 $tokens = token_get_all($source);
59 *** Testing token_get_all() : with different function constructs ***
H A Dtoken_get_all_variation10.phpt2 Test token_get_all() function : usage variations - with constant tokens
7 /* Prototype : array token_get_all(string $source)
21 echo "*** Testing token_get_all() : 'source' string with different constants ***\n";
45 var_dump( token_get_all($source[$count]));
51 *** Testing token_get_all() : 'source' string with different constants ***
H A Dtoken_get_all_variation5.phpt2 Test token_get_all() function : usage variations - with assignment operators
7 /* Prototype : array token_get_all(string $source)
21 echo "*** Testing token_get_all() : 'source' string with different assignment operators ***\n";
38 var_dump( token_get_all($source));
43 *** Testing token_get_all() : 'source' string with different assignment operators ***
H A Dtoken_get_all_variation8.phpt2 Test token_get_all() function : usage variations - with type casting operators
7 /* Prototype : array token_get_all(string $source)
19 echo "*** Testing token_get_all() : 'source' string with different type casting operators ***\n";
33 var_dump( token_get_all($source));
38 *** Testing token_get_all() : 'source' string with different type casting operators ***
/PHP-5.4/ext/reflection/tests/
H A Dbug64936.phpt19 token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comm…
26 token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comm…
/PHP-5.4/ext/tokenizer/
H A Dphp_tokenizer.h38 PHP_FUNCTION(token_get_all);
H A Dtokenizer.php13 $tokens = token_get_all($content);

Completed in 38 milliseconds

12