/PHP-5.3/ext/tokenizer/tests/ |
H A D | token_get_all_error.phpt | 2 Test token_get_all() function : error conditions 5 /* Prototype : array token_get_all(string $source) 10 echo "*** Testing token_get_all() : error conditions ***\n"; 13 echo "\n-- Testing token_get_all() function with zero arguments --\n"; 14 var_dump( token_get_all()); 20 var_dump( token_get_all($source, $extra_arg)); 25 *** Testing token_get_all() : error conditions *** 27 -- Testing token_get_all() function with zero arguments -- 29 Warning: token_get_all() expects exactly 1 parameter, 0 given in %s on line %d 31 -- Testing token_get_all() function with more than expected no. of arguments -- [all …]
|
H A D | 003.phpt | 2 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 D | token_get_all_variation18.phpt | 2 Test token_get_all() function : usage variations - with HTML code 5 /* Prototype : array token_get_all(string $source) 11 * Testing token_get_all() with source string containing HTML code with PHP 15 echo "*** Testing token_get_all() : 'source' string with HTML tags ***\n"; 27 var_dump( token_get_all($source)); 32 *** Testing token_get_all() : 'source' string with HTML tags ***
|
H A D | token_get_all_variation1.phpt | 2 Test token_get_all() function : usage variations - unexpected values for 'source' argument 5 /* Prototype : array token_get_all(string $source) 15 echo "*** Testing token_get_all() : unexpected values for 'source' argument ***\n"; 85 var_dump( token_get_all($source_values[$count])); 92 *** Testing token_get_all() : unexpected values for 'source' argument *** 203 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d 207 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d 211 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d 215 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d 219 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d [all …]
|
H A D | token_get_all_basic.phpt | 2 Test token_get_all() function : basic functionality 5 /* Prototype : array token_get_all(string $source) 10 echo "*** Testing token_get_all() : basic functionality ***\n"; 15 var_dump( token_get_all($source) ); 20 var_dump( token_get_all($source) ); 25 *** Testing token_get_all() : basic functionality ***
|
H A D | token_get_all_variation14.phpt | 2 Test token_get_all() function : usage variations - invalid token values 5 /* Prototype : array token_get_all(string $source) 11 * Testing token_get_all() with 'source' string containing invalid/unknown token value 15 echo "*** Testing token_get_all() : with invalid/unknown tokens ***\n"; 25 var_dump( token_get_all($source)); 31 var_dump( token_get_all($source)); 36 var_dump( token_get_all($source)); 41 *** Testing token_get_all() : with invalid/unknown tokens ***
|
H A D | token_get_all_variation12.phpt | 2 Test token_get_all() function : usage variations - with predefined language constants 5 /* Prototype : array token_get_all(string $source) 11 * Testing token_get_all() with following predefined language constants: 19 echo "*** Testing token_get_all() : with language constants ***\n"; 26 var_dump( token_get_all($source)); 38 var_dump( token_get_all($source)); 46 var_dump( token_get_all($source)); 51 *** Testing token_get_all() : with language constants ***
|
H A D | token_get_all_variation7.phpt | 2 Test token_get_all() function : usage variations - with increment/decrement operators 5 /* Prototype : array token_get_all(string $source) 16 echo "*** Testing token_get_all() : 'source' string with different increment/decrement operators **… 25 var_dump( token_get_all($source)); 30 *** Testing token_get_all() : 'source' string with different increment/decrement operators ***
|
H A D | token_get_all_variation19.phpt | 2 Reconstructing a script using token_get_all() 9 // A php script to test token_get_all() 31 $token_array = token_get_all($phpstr); 57 // A php script to test token_get_all()
|
H A D | token_get_all_variation6.phpt | 2 Test token_get_all() function : usage variations - with bitwise operators 5 /* Prototype : array token_get_all(string $source) 16 echo "*** Testing token_get_all() : 'source' string with different bitwise operators ***\n"; 26 var_dump( token_get_all($source)); 31 *** Testing token_get_all() : 'source' string with different bitwise operators ***
|
H A D | token_get_all_variation17.phpt | 2 Test token_get_all() function : usage variations - with exception keywords 5 /* Prototype : array token_get_all(string $source) 11 * Testing token_get_all() with different exception keywords 17 echo "*** Testing token_get_all() : with exception keywords ***\n"; 34 $tokens = token_get_all($source); 40 *** Testing token_get_all() : with exception keywords ***
|
H A D | token_get_all_variation2.phpt | 2 Test token_get_all() function : usage variations - with different arithmetic operators 5 /* Prototype : array token_get_all(string $source) 16 echo "*** Testing token_get_all() : 'source' string with different arithmetic operators ***\n"; 27 var_dump( token_get_all($source[$count])); 32 *** Testing token_get_all() : 'source' string with different arithmetic operators ***
|
H A D | token_get_all_variation9.phpt | 2 Test token_get_all() function : usage variations - with different types of comments 5 /* Prototype : array token_get_all(string $source) 17 echo "*** Testing token_get_all() : 'source' string with different comments ***\n"; 40 var_dump( token_get_all($source)); 45 *** Testing token_get_all() : 'source' string with different comments ***
|
H A D | bug54089.phpt | 2 Bug #54089 (token_get_all() does not stop after __halt_compiler) 8 $tokens = token_get_all($code);
|
H A D | token_get_all_variation3.phpt | 2 Test token_get_all() function : usage variations - with logical operators 5 /* Prototype : array token_get_all(string $source) 19 echo "*** Testing token_get_all() : 'source' string with different logical operators ***\n"; 31 var_dump( token_get_all($source[$count])); 37 *** Testing token_get_all() : 'source' string with different logical operators ***
|
H A D | token_get_all_variation15.phpt | 2 Test token_get_all() function : usage variations - heredoc string for 'source' 7 /* Prototype : array token_get_all(string $source) 13 …* Testing token_get_all() with heredoc 'source' string with all different types of token and hered… 18 echo "*** Testing token_get_all() : with heredoc source string ***\n"; 45 var_dump( token_get_all($source)); 50 *** Testing token_get_all() : with heredoc source string ***
|
H A D | token_get_all_variation11.phpt | 2 Test token_get_all() function : usage variations - with control structure tokens 5 /* Prototype : array token_get_all(string $source) 22 echo "*** Testing token_get_all() : for control structure tokens ***\n"; 38 var_dump( token_get_all($source)); 51 var_dump( token_get_all($source)); 63 var_dump( token_get_all($source)); 72 var_dump( token_get_all($source)); 77 *** Testing token_get_all() : for control structure tokens ***
|
H A D | token_get_all_variation4.phpt | 2 Test token_get_all() function : usage variations - with comparison operators 5 /* Prototype : array token_get_all(string $source) 17 echo "*** Testing token_get_all() : 'source' string with different comparison operators ***\n"; 32 var_dump( token_get_all($source)); 37 *** Testing token_get_all() : 'source' string with different comparison operators ***
|
H A D | bug26463.phpt | 2 Bug #26463 (token_get_all() does not correctly handle semicolons after T_END_HEREDOC) 16 var_dump(token_get_all($str));
|
H A D | token_get_all_variation5.phpt | 2 Test token_get_all() function : usage variations - with assignment operators 5 /* Prototype : array token_get_all(string $source) 19 echo "*** Testing token_get_all() : 'source' string with different assignment operators ***\n"; 36 var_dump( token_get_all($source)); 41 *** Testing token_get_all() : 'source' string with different assignment operators ***
|
H A D | token_get_all_variation16.phpt | 2 Test token_get_all() function : usage variations - with function constructs 5 /* Prototype : array token_get_all(string $source) 11 * Testing token_get_all() with different function keywords 21 echo "*** Testing token_get_all() : with different function constructs ***\n"; 51 $tokens = token_get_all($source); 57 *** Testing token_get_all() : with different function constructs ***
|
H A D | token_get_all_variation10.phpt | 2 Test token_get_all() function : usage variations - with constant tokens 5 /* Prototype : array token_get_all(string $source) 19 echo "*** Testing token_get_all() : 'source' string with different constants ***\n"; 43 var_dump( token_get_all($source[$count])); 49 *** Testing token_get_all() : 'source' string with different constants ***
|
H A D | token_get_all_variation8.phpt | 2 Test token_get_all() function : usage variations - with type casting operators 5 /* Prototype : array token_get_all(string $source) 17 echo "*** Testing token_get_all() : 'source' string with different type casting operators ***\n"; 31 var_dump( token_get_all($source)); 36 *** Testing token_get_all() : 'source' string with different type casting operators ***
|
H A D | token_get_all_variation13.phpt | 2 Test token_get_all() function : usage variations - with class/object constructs 5 /* Prototype : array token_get_all(string $source) 11 * Testing token_get_all() with different class/object keywords 22 echo "*** Testing token_get_all() : with class/object constructs ***\n"; 51 $tokens = token_get_all($source); 57 *** Testing token_get_all() : with class/object constructs ***
|
/PHP-5.3/ext/tokenizer/ |
H A D | php_tokenizer.h | 38 PHP_FUNCTION(token_get_all);
|