1--TEST--
2Calling get_called_class() outside a class
3--FILE--
4<?php
5
6try {
7    var_dump(get_called_class());
8} catch (Error $e) {
9    echo $e->getMessage(), "\n";
10}
11
12?>
13--EXPECT--
14get_called_class() must be called from within a class
15