summaryrefslogtreecommitdiff
path: root/Zend/tests/special_name_error3.phpt
blob: 74e69f19385f3e4c686558347f97d5aababf8ced (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Cannot use special class name as trait name
--FILE--
<?php

trait self {}

?>
--EXPECTF--
Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d