1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/class_name/bug69754.phpt
DanielEScherzer babf7a32bf Zend/tests: organize some tests with sub directories (10) (#17920)
Add directories for tests relating to
- halting the compiler
- `declare()` usage
- exception handlers
- `get_class_methods()`
- `get_class_vars()`
- `isset()`
- name collisions

As well as organizing a couple of tests into existing sub directories along the
way

Work towards GH-15631
2025-02-25 09:48:52 +00:00

26 lines
458 B
PHP

--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"
}