--TEST-- Extending the PhpToken class --SKIPIF-- --FILE-- text); } } foreach (MyPhpToken::tokenize($code) as $token) { echo $token->getLoweredText(); if ($token->extra !== 123) { echo "Missing property!\n"; } } ?> --EXPECT--