public function testValidGlobal() { $this->parser->parse('<?php function f() { global ${$foo->bar}; }'); }