mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
22 lines
247 B
PHP
22 lines
247 B
PHP
--TEST--
|
|
Test to ensure ::class still works
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo {}
|
|
|
|
var_dump(Foo::class);
|
|
|
|
var_dump(Foo:: class);
|
|
|
|
var_dump(Foo:: CLASS);
|
|
|
|
var_dump(Foo::
|
|
|
|
CLASS);
|
|
|
|
--EXPECTF--
|
|
string(3) "Foo"
|
|
string(3) "Foo"
|
|
string(3) "Foo"
|
|
string(3) "Foo"
|