summaryrefslogtreecommitdiff
path: root/Zend/tests/constants_006.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-07-30 12:14:30 +0000
committerFelipe Pena <felipe@php.net>2008-07-30 12:14:30 +0000
commit0afc07b26a4f2cc2b90f126dc3d58f6d0576a78d (patch)
treeb1e09824a97408dd76696959e70b811497c57e49 /Zend/tests/constants_006.phpt
parent8127bc0d6bce8c1d43644f09eb15bcaebcee67ed (diff)
downloadphp-git-0afc07b26a4f2cc2b90f126dc3d58f6d0576a78d.tar.gz
- New test
Diffstat (limited to 'Zend/tests/constants_006.phpt')
-rw-r--r--Zend/tests/constants_006.phpt32
1 files changed, 32 insertions, 0 deletions
diff --git a/Zend/tests/constants_006.phpt b/Zend/tests/constants_006.phpt
new file mode 100644
index 0000000000..24851531bc
--- /dev/null
+++ b/Zend/tests/constants_006.phpt
@@ -0,0 +1,32 @@
+--TEST--
+Magic constants lowercased
+--FILE--
+<?php
+
+namespace test;
+
+var_dump(__dir__);
+var_dump(__file__);
+var_dump(__line__);
+
+class foo {
+ public function __construct() {
+ var_dump(__method__);
+ var_dump(__class__);
+ var_dump(__function__);
+ }
+}
+
+new foo;
+
+var_dump(__namespace__);
+
+?>
+--EXPECTF--
+string(%d) "%s"
+string(%d) "%s"
+int(%d)
+string(22) "test::foo::__construct"
+string(9) "test::foo"
+string(11) "__construct"
+string(4) "test"