Skip to content

Commit

Permalink
- New test
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jul 30, 2008
1 parent 8127bc0 commit 0afc07b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Zend/tests/constants_006.phpt
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 0afc07b

Please sign in to comment.