1--TEST--
2Test to ensure ::class is still reserved in obj scope
3--FILE--
4<?php
5
6class Obj
7{
8    const CLASS = 'class';
9}
10
11?>
12--EXPECTF--
13Fatal error: A class constant must not be called 'class'; it is reserved for class name fetching in %s on line %d
14