php2go/fixtures/0011-magic-consts.php

24 lines
250 B
PHP
Raw Normal View History

<?php
namespace myNamespace;
echo __file__;
echo __Line__;
echo __DIR__;
echo __NAMESPACE__;
function Foo() {
echo __FUNCTION__;
}
class Bar {
function Baz() {
echo __CLASS__ . "::" . __METHOD__ ;
echo Baz::class;
}
}
// TODO __TRAIT__