summaryrefslogtreecommitdiff
path: root/tests/classes/constants_basic_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/constants_basic_001.phpt')
-rw-r--r--tests/classes/constants_basic_001.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/classes/constants_basic_001.phpt b/tests/classes/constants_basic_001.phpt
index 9536b2a38f..ae1653356e 100644
--- a/tests/classes/constants_basic_001.phpt
+++ b/tests/classes/constants_basic_001.phpt
@@ -6,31 +6,31 @@ Class constant declarations
$def = 456;
define('DEFINED_TO_VAR', $def);
define('DEFINED_TO_UNDEF_VAR', $undef);
-
+
class C
{
const c0 = UNDEFINED;
-
+
const c1 = 1, c2 = 1.5;
const c3 = + 1, c4 = + 1.5;
const c5 = -1, c6 = -1.5;
-
+
const c7 = __LINE__;
const c8 = __FILE__;
const c9 = __CLASS__;
const c10 = __METHOD__;
const c11 = __FUNCTION__;
-
+
const c12 = DEFINED;
const c13 = DEFINED_TO_VAR;
const c14 = DEFINED_TO_UNDEF_VAR;
-
+
const c15 = "hello1";
const c16 = 'hello2';
const c17 = C::c16;
const c18 = self::c17;
}
-
+
echo "\nAttempt to access various kinds of class constants:\n";
var_dump(C::c0);
var_dump(C::c1);
@@ -51,10 +51,10 @@ Class constant declarations
var_dump(C::c16);
var_dump(C::c17);
var_dump(C::c18);
-
+
echo "\nExpecting fatal error:\n";
var_dump(C::c19);
-
+
echo "\nYou should not see this.";
?>
--EXPECTF--