1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 00:18:23 +02:00
Files
archived-php-src/Zend/tests/constants_006.phpt
T
Felipe Pena 0afc07b26a - New test
2008-07-30 12:14:30 +00:00

33 lines
444 B
PHP

--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"