summaryrefslogtreecommitdiff
path: root/tests/classes/constants_error_004.phpt
blob: 3d675652ba2417090ebc6880cf98866810a763d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Class constant whose initial value references a non-existent class
--FILE--
<?php
  class C
  {
      const c1 = D::hello;
  }

  $a = new C();
?>
--EXPECTF--
Fatal error: Uncaught Error: Class "D" not found in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d