diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-07-02 12:43:27 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-07-02 12:43:27 +0200 |
commit | 33699a4dab2857a74e628d021f601ec0ae7f982c (patch) | |
tree | efeb5c4c15c10b914c05894de409e63265549df6 /Zend | |
parent | 09d1a8aaab15eef182dd71cf6aa506f54dc70ea7 (diff) | |
download | php-git-33699a4dab2857a74e628d021f601ec0ae7f982c.tar.gz |
Messed up syntax of tests
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/tests/constant_expressions_arrays.phpt | 6 | ||||
-rw-r--r-- | Zend/tests/constant_expressions_self_referencing_array.phpt | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Zend/tests/constant_expressions_arrays.phpt b/Zend/tests/constant_expressions_arrays.phpt index f1f025180e..061fcc6a92 100644 --- a/Zend/tests/constant_expressions_arrays.phpt +++ b/Zend/tests/constant_expressions_arrays.phpt @@ -1,6 +1,6 @@ ----TEST--- +--TEST-- Constant expressions with arrays ----FILE--- +--FILE-- <?php const a = [1,2,[3,[4]]]; const b = a[0]; @@ -25,7 +25,7 @@ var_dump(foo::bar); var_dump(a); // Eventually allow that later with array dereferencing of constants ?> ----EXPECTF--- +--EXPECTF-- int(1) int(3) int(1) diff --git a/Zend/tests/constant_expressions_self_referencing_array.phpt b/Zend/tests/constant_expressions_self_referencing_array.phpt index 7fc477d470..ae76a08602 100644 --- a/Zend/tests/constant_expressions_self_referencing_array.phpt +++ b/Zend/tests/constant_expressions_self_referencing_array.phpt @@ -1,6 +1,6 @@ ----TEST--- +--TEST-- Self-referencing constant expression (part of a constant AST) ----FILE--- +--FILE-- <?php class A { const FOO = [self::BAR]; @@ -8,6 +8,6 @@ class A { } var_dump(A::FOO); ?> ----EXPECTF--- +--EXPECTF-- Fatal error: Cannot declare self-referencing constant 'self::FOO' in %s on line %d |