1--TEST--
2Cannot access self::class when no class scope is active
3--FILE--
4<?php
5
6var_dump(self::class);
7
8?>
9--EXPECTF--
10Fatal error: Uncaught Error: Cannot use "self" when no class scope is active in %s:3
11Stack trace:
12#0 {main}
13  thrown in %s on line 3
14