--TEST-- Test semi-reserved words as class methods --FILE-- empty(); $obj->callable(); $obj->class(); $obj->trait(); $obj->extends(); $obj->implements(); $obj->static(); $obj->abstract(); $obj->final(); $obj->public(); $obj->protected(); $obj->private(); $obj->const(); $obj->enddeclare(); $obj->endfor(); $obj->endforeach(); $obj->endif(); $obj->endwhile(); $obj->and(); $obj->global(); $obj->goto(); $obj->instanceof(); $obj->insteadof(); $obj->interface(); $obj->namespace(); $obj->new(); $obj->or(); $obj->xor(); $obj->try(); $obj->use(); $obj->var(); $obj->exit(); $obj->list(); $obj->clone(); $obj->include(); $obj->include_once(); $obj->throw(); $obj->array(); $obj->print(); $obj->echo(); $obj->require(); $obj->require_once(); $obj->return(); $obj->else(); $obj->elseif(); $obj->default(); $obj->break(); $obj->continue(); $obj->switch(); $obj->yield(); $obj->function(); $obj->if(); $obj->endswitch(); $obj->finally(); $obj->for(); $obj->foreach(); $obj->declare(); $obj->case(); $obj->do(); $obj->while(); $obj->as(); $obj->catch(); $obj->die(); $obj->self(); $obj->parent(); $obj->isset(); $obj->unset(); $obj->__CLASS__(); $obj->__TRAIT__(); $obj->__FUNCTION__(); $obj->__METHOD__(); $obj->__LINE__(); $obj->__FILE__(); $obj->__DIR__(); $obj->__NAMESPACE__(); echo "\nDone\n"; --EXPECT-- Obj::empty Obj::callable Obj::class Obj::trait Obj::extends Obj::implements Obj::static Obj::abstract Obj::final Obj::public Obj::protected Obj::private Obj::const Obj::enddeclare Obj::endfor Obj::endforeach Obj::endif Obj::endwhile Obj::and Obj::global Obj::goto Obj::instanceof Obj::insteadof Obj::interface Obj::namespace Obj::new Obj::or Obj::xor Obj::try Obj::use Obj::var Obj::exit Obj::list Obj::clone Obj::include Obj::include_once Obj::throw Obj::array Obj::print Obj::echo Obj::require Obj::require_once Obj::return Obj::else Obj::elseif Obj::default Obj::break Obj::continue Obj::switch Obj::yield Obj::function Obj::if Obj::endswitch Obj::finally Obj::for Obj::foreach Obj::declare Obj::case Obj::do Obj::while Obj::as Obj::catch Obj::die Obj::self Obj::parent Obj::isset Obj::unset Obj::__CLASS__ Obj::__TRAIT__ Obj::__FUNCTION__ Obj::__METHOD__ Obj::__LINE__ Obj::__FILE__ Obj::__DIR__ Obj::__NAMESPACE__ Done