xref: /PHP-7.2/Zend/tests/traits/error_007.phpt (revision 17ccbeec)
1--TEST--
2Trying to instantiate a trait
3--FILE--
4<?php
5
6trait abc {
7}
8
9new abc;
10
11?>
12--EXPECTF--
13Fatal error: Uncaught Error: Cannot instantiate trait abc in %s:%d
14Stack trace:
15#0 {main}
16  thrown in %s on line %d
17