Download src/php/php-src/Zend/tests/class_name/bug69754.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/class_name/bug69754.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/class_name/bug69754.phpt
-
curl -L -o bug69754.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/class_name/bug69754.phpt
458 Bytes
| --TEST-- | |
| Bug #69754 (Use of ::class inside array causes compile error) | |
| --FILE-- | |
| 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" | |
| } | |