php2go/fixtures/0011-magic-consts.php

25 lines
274 B
PHP

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