diff options
Diffstat (limited to 'ext/tokenizer')
18 files changed, 34 insertions, 34 deletions
diff --git a/ext/tokenizer/tests/001.phpt b/ext/tokenizer/tests/001.phpt index a09e5ef19c..4c6295cdf8 100644 --- a/ext/tokenizer/tests/001.phpt +++ b/ext/tokenizer/tests/001.phpt @@ -131,7 +131,7 @@ echo token_name(array()), "\n"; echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- T_INCLUDE T_INCLUDE_ONCE T_EVAL diff --git a/ext/tokenizer/tests/003.phpt b/ext/tokenizer/tests/003.phpt index fdcf7748a8..3ba6d594df 100644 --- a/ext/tokenizer/tests/003.phpt +++ b/ext/tokenizer/tests/003.phpt @@ -13,7 +13,7 @@ var_dump(token_get_all(-1)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d NULL diff --git a/ext/tokenizer/tests/bug54089.phpt b/ext/tokenizer/tests/bug54089.phpt index 77a4c1f324..ff461ecb78 100644 --- a/ext/tokenizer/tests/bug54089.phpt +++ b/ext/tokenizer/tests/bug54089.phpt @@ -15,7 +15,7 @@ $codes = array( foreach ($codes as $code) { $tokens = token_get_all($code); var_dump($tokens); - + $code = ''; foreach ($tokens as $t) { diff --git a/ext/tokenizer/tests/token_get_all_basic.phpt b/ext/tokenizer/tests/token_get_all_basic.phpt index 7af8109f89..2e3b1b4672 100644 --- a/ext/tokenizer/tests/token_get_all_basic.phpt +++ b/ext/tokenizer/tests/token_get_all_basic.phpt @@ -1,5 +1,5 @@ --TEST-- -Test token_get_all() function : basic functionality +Test token_get_all() function : basic functionality --SKIPIF-- <?php if (!extension_loaded("tokenizer")) print "skip"; ?> --FILE-- diff --git a/ext/tokenizer/tests/token_get_all_error.phpt b/ext/tokenizer/tests/token_get_all_error.phpt index 9ded0a1774..35b5048b6b 100644 --- a/ext/tokenizer/tests/token_get_all_error.phpt +++ b/ext/tokenizer/tests/token_get_all_error.phpt @@ -1,11 +1,11 @@ --TEST-- -Test token_get_all() function : error conditions +Test token_get_all() function : error conditions --SKIPIF-- <?php if (!extension_loaded("tokenizer")) print "skip"; ?> --FILE-- <?php /* Prototype : array token_get_all(string $source) - * Description: splits the given source into an array of PHP languange tokens + * Description: splits the given source into an array of PHP languange tokens * Source code: ext/tokenizer/tokenizer.c */ diff --git a/ext/tokenizer/tests/token_get_all_variation1.phpt b/ext/tokenizer/tests/token_get_all_variation1.phpt index 276453fd15..14ece715eb 100644 --- a/ext/tokenizer/tests/token_get_all_variation1.phpt +++ b/ext/tokenizer/tests/token_get_all_variation1.phpt @@ -5,7 +5,7 @@ Test token_get_all() function : usage variations - unexpected values for 'source --FILE-- <?php /* Prototype : array token_get_all(string $source) - * Description: splits the given source into an array of PHP languange tokens + * Description: splits the given source into an array of PHP languange tokens * Source code: ext/tokenizer/tokenizer.c */ @@ -71,7 +71,7 @@ $source_values = array( // object data /*23*/ new MyClass(), - + // resource data $fp, diff --git a/ext/tokenizer/tests/token_get_all_variation10.phpt b/ext/tokenizer/tests/token_get_all_variation10.phpt index 55e9d7edf8..af2e413d38 100644 --- a/ext/tokenizer/tests/token_get_all_variation10.phpt +++ b/ext/tokenizer/tests/token_get_all_variation10.phpt @@ -25,17 +25,17 @@ $b = 0; $source = array ( // int const - '<?php $a = 1 + 034; $b = $a + 0x3F; ?>', - + '<?php $a = 1 + 034; $b = $a + 0x3F; ?>', + // float const '<?php $a = 0.23E-2 + 0.43e2 + 0.5; ?>', // string const - '<?php $a = "hello ".\'world\'; ?>', + '<?php $a = "hello ".\'world\'; ?>', // bool const - "<?php \$a = (\$b)? true : false; ?>", - "<?php \$b = (\$a)? FALSE : TRUE; ?>", + "<?php \$a = (\$b)? true : false; ?>", + "<?php \$b = (\$a)? FALSE : TRUE; ?>", // null const '<?php $b = null | NULL; ?>' diff --git a/ext/tokenizer/tests/token_get_all_variation11.phpt b/ext/tokenizer/tests/token_get_all_variation11.phpt index 98d89961b7..146e433e12 100644 --- a/ext/tokenizer/tests/token_get_all_variation11.phpt +++ b/ext/tokenizer/tests/token_get_all_variation11.phpt @@ -10,7 +10,7 @@ Test token_get_all() function : usage variations - with control structure tokens */ /* - * Using different control structure keywords + * Using different control structure keywords * if..else, elseif - T_IF(301), T_ELSEIF(302), T_ELSE(303) * while - T_WHILE(318) * do...while - T_DO(317) diff --git a/ext/tokenizer/tests/token_get_all_variation13.phpt b/ext/tokenizer/tests/token_get_all_variation13.phpt index 6f85492a99..4c792d59a9 100644 --- a/ext/tokenizer/tests/token_get_all_variation13.phpt +++ b/ext/tokenizer/tests/token_get_all_variation13.phpt @@ -11,12 +11,12 @@ Test token_get_all() function : usage variations - with class/object constructs /* * Testing token_get_all() with different class/object keywords - * scope related : + * scope related : * static - T_STATIC(346), global - T_GLOBAL(340), * private - T_PRIVATE(343), public - T_PUBLIC(341), * protected - T_PROTECTED(342) - * class/object related : - * var - T_VAR(347), abstract - T_ABSTRACT(345), + * class/object related : + * var - T_VAR(347), abstract - T_ABSTRACT(345), * interface - T_INTERFACE(353), class - T_CLASS(352), * extends - T_EXTENDS(354), implements - T_IMPLEMENTS(355), new - T_NEW(299) */ diff --git a/ext/tokenizer/tests/token_get_all_variation15.phpt b/ext/tokenizer/tests/token_get_all_variation15.phpt index fbb50dee86..56269f5d01 100644 --- a/ext/tokenizer/tests/token_get_all_variation15.phpt +++ b/ext/tokenizer/tests/token_get_all_variation15.phpt @@ -1,5 +1,5 @@ --TEST-- -Test token_get_all() function : usage variations - heredoc string for 'source' +Test token_get_all() function : usage variations - heredoc string for 'source' --SKIPIF-- <?php if (!extension_loaded("tokenizer")) print "skip"; ?> --INI-- diff --git a/ext/tokenizer/tests/token_get_all_variation16.phpt b/ext/tokenizer/tests/token_get_all_variation16.phpt index db9bde1ad6..88fa59760f 100644 --- a/ext/tokenizer/tests/token_get_all_variation16.phpt +++ b/ext/tokenizer/tests/token_get_all_variation16.phpt @@ -12,11 +12,11 @@ Test token_get_all() function : usage variations - with function constructs /* * Testing token_get_all() with different function keywords * function - T_FUNCTION(333), return - T_RETURN(335) - * different functions: - * include() - T_INCLUDE(262), print() - T_PRINT(266), - * isset() - T_ISSET(349), list() - T_LIST(358), - * require() - T_REQUIRE(259), empty() - T_EMPTY(350), - * declare() - T_DECLARE(324), array() - T_ARRAY(359), + * different functions: + * include() - T_INCLUDE(262), print() - T_PRINT(266), + * isset() - T_ISSET(349), list() - T_LIST(358), + * require() - T_REQUIRE(259), empty() - T_EMPTY(350), + * declare() - T_DECLARE(324), array() - T_ARRAY(359), * __halt_compiler() - T_HALT_COMPILER(351) */ diff --git a/ext/tokenizer/tests/token_get_all_variation17.phpt b/ext/tokenizer/tests/token_get_all_variation17.phpt index d34508a8d5..bc9f3df65b 100644 --- a/ext/tokenizer/tests/token_get_all_variation17.phpt +++ b/ext/tokenizer/tests/token_get_all_variation17.phpt @@ -11,7 +11,7 @@ Test token_get_all() function : usage variations - with exception keywords /* * Testing token_get_all() with different exception keywords - * try - T_TRY(336), + * try - T_TRY(336), * catch - T_CATCH(337), * throw - T_THROW(338) */ diff --git a/ext/tokenizer/tests/token_get_all_variation18.phpt b/ext/tokenizer/tests/token_get_all_variation18.phpt index 01219ffaa4..7da1eaac81 100644 --- a/ext/tokenizer/tests/token_get_all_variation18.phpt +++ b/ext/tokenizer/tests/token_get_all_variation18.phpt @@ -1,5 +1,5 @@ --TEST-- -Test token_get_all() function : usage variations - with HTML code +Test token_get_all() function : usage variations - with HTML code --SKIPIF-- <?php if (!extension_loaded("tokenizer")) print "skip"; ?> --FILE-- diff --git a/ext/tokenizer/tests/token_get_all_variation19.phpt b/ext/tokenizer/tests/token_get_all_variation19.phpt index 9ae6759a8f..6f4f7b68b3 100644 --- a/ext/tokenizer/tests/token_get_all_variation19.phpt +++ b/ext/tokenizer/tests/token_get_all_variation19.phpt @@ -33,7 +33,7 @@ for ($i = 0; $i < 10; $i++) { $token_array = token_get_all($phpstr); $script = ""; -// reconstruct a script (without open/close tags) from the token array +// reconstruct a script (without open/close tags) from the token array foreach ($token_array as $token) { if (is_array($token)) { if (strncmp($token[1], '<?php', 5) == 0) { diff --git a/ext/tokenizer/tests/token_get_all_variation2.phpt b/ext/tokenizer/tests/token_get_all_variation2.phpt index 1f206260c7..401fb7d095 100644 --- a/ext/tokenizer/tests/token_get_all_variation2.phpt +++ b/ext/tokenizer/tests/token_get_all_variation2.phpt @@ -17,7 +17,7 @@ Test token_get_all() function : usage variations - with different arithmetic ope echo "*** Testing token_get_all() : 'source' string with different arithmetic operators ***\n"; -// arithmetic operators - '+', '-', '*', '/', '%' +// arithmetic operators - '+', '-', '*', '/', '%' $source = array ( '<?php $a = 1 + 2; ?>', '<?php $b = $b - 2; ?>', diff --git a/ext/tokenizer/tests/token_get_all_variation3.phpt b/ext/tokenizer/tests/token_get_all_variation3.phpt index 66cf4aa87f..f00ed7966f 100644 --- a/ext/tokenizer/tests/token_get_all_variation3.phpt +++ b/ext/tokenizer/tests/token_get_all_variation3.phpt @@ -11,16 +11,16 @@ Test token_get_all() function : usage variations - with logical operators /* * Passing 'source' argument with different logical operators to test them for tokens - * and - T_AND_LOGICAL_AND(265), - * or - T_LOGICAL_OR(263), - * xor - T_LOGICAL_XOR(264), - * && - T_BOOLEAN_AND(279), + * and - T_AND_LOGICAL_AND(265), + * or - T_LOGICAL_OR(263), + * xor - T_LOGICAL_XOR(264), + * && - T_BOOLEAN_AND(279), * || - T_BOOLEAN_OR(278) */ echo "*** Testing token_get_all() : 'source' string with different logical operators ***\n"; -// logical operators : 'and', 'or', 'xor', '&&', '||' +// logical operators : 'and', 'or', 'xor', '&&', '||' $source = array ( '<?php $a = 1 and 024; ?>', '<?php $b = $b or 0X1E; ?>', diff --git a/ext/tokenizer/tests/token_get_all_variation4.phpt b/ext/tokenizer/tests/token_get_all_variation4.phpt index 6bc111efba..1ebafaec3a 100644 --- a/ext/tokenizer/tests/token_get_all_variation4.phpt +++ b/ext/tokenizer/tests/token_get_all_variation4.phpt @@ -11,7 +11,7 @@ Test token_get_all() function : usage variations - with comparison operators /* * Passing 'source' argument with different comparison operators to test them for tokens - * == - T_IS_EQUAL(283), === - T_IS_IDENTICAL(281), + * == - T_IS_EQUAL(283), === - T_IS_IDENTICAL(281), * >= - T_IS_GREATER_OR_EQUAL(284), <= - T_IS_LESS_OR_EQUAL(285) * != - T_IS_NOT_EQUAL, <> - T_IS_NOT_EQUAL(282), !== - T_IS_NOT_IDENTICAL(280) */ diff --git a/ext/tokenizer/tests/token_get_all_variation5.phpt b/ext/tokenizer/tests/token_get_all_variation5.phpt index 681fb48e57..2d8121fd80 100644 --- a/ext/tokenizer/tests/token_get_all_variation5.phpt +++ b/ext/tokenizer/tests/token_get_all_variation5.phpt @@ -11,7 +11,7 @@ Test token_get_all() function : usage variations - with assignment operators /* * Passing 'source' argument with different assignment operators to test them for tokens - * += - T_PLUS_EQUAL(277), -= - T_MINUS-EQUAL(276), + * += - T_PLUS_EQUAL(277), -= - T_MINUS-EQUAL(276), * *= - T_MUL_EQUAL(275), /= - T_DIVIDE_EQUAL(274), * %= - T_MOD_EQUAL(272), &= - T_AND_EQUAL(271), * |= - T_OR_EQUAL(271), ^= - T_EXOR_EQUAL(269), |