xref: /PHP-7.3/Zend/tests/bug69754.phpt (revision 1d3f77d1)
1--TEST--
2Bug #69754 (Use of ::class inside array causes compile error)
3--FILE--
4<?php
5
6class Example {
7	public function test() {
8		var_dump(static::class);
9		var_dump(static::class . 'IsAwesome');
10		var_dump(static::class . date('Ymd'));
11		var_dump([static::class]);
12    }
13}
14
15(new Example)->test();
16
17?>
18--EXPECTF--
19string(7) "Example"
20string(16) "ExampleIsAwesome"
21string(15) "Example%d"
22array(1) {
23  [0]=>
24  string(7) "Example"
25}
26