summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69754.phpt
blob: be55ae2b78b71350a3e5a3dfe9a7f376560c39c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #69754 (Use of ::class inside array causes compile error)
--FILE--
<?php

class Example {
	public function test() {
		var_dump(static::class);
		var_dump(static::class . 'IsAwesome');
		var_dump(static::class . date('Ymd'));
		var_dump([static::class]);
    }
}

(new Example)->test();

?>
--EXPECTF--
string(7) "Example"
string(16) "ExampleIsAwesome"
string(15) "Example%d"
array(1) {
  [0]=>
  string(7) "Example"
}