cvs: ZendEngine2 /tests constants_006.phpt

"Felipe Pena" <[email protected]>
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvsfelipe1217420797@cvsserver>
felipe		Wed Jul 30 12:26:37 2008 UTC

  Modified files:              
    /ZendEngine2/tests	constants_006.phpt 
  Log:
  - New test
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/constants_006.phpt?r1=1.1&r2=1.2&diff_format=u
Index: ZendEngine2/tests/constants_006.phpt
diff -u /dev/null ZendEngine2/tests/constants_006.phpt:1.2
--- /dev/null	Wed Jul 30 12:26:37 2008
+++ ZendEngine2/tests/constants_006.phpt	Wed Jul 30 12:26:37 2008
@@ -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--
+unicode(%d) "%s"
+unicode(%d) "%s"
+int(%d)
+unicode(22) "test::foo::__construct"
+unicode(9) "test::foo"
+unicode(11) "__construct"
+unicode(4) "test"



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.