diff options
Diffstat (limited to 'Zend/tests/enum/__callStatic.phpt')
-rw-r--r-- | Zend/tests/enum/__callStatic.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Zend/tests/enum/__callStatic.phpt b/Zend/tests/enum/__callStatic.phpt new file mode 100644 index 0000000000..d3acd38239 --- /dev/null +++ b/Zend/tests/enum/__callStatic.phpt @@ -0,0 +1,27 @@ +--TEST-- +Enum __callStatic +--FILE-- +<?php + +enum Foo { + public static function __callStatic(string $name, array $args) + { + return [$name, $args]; + } +} + +var_dump(Foo::bar('baz', 'qux')); + +?> +--EXPECT-- +array(2) { + [0]=> + string(3) "bar" + [1]=> + array(2) { + [0]=> + string(3) "baz" + [1]=> + string(3) "qux" + } +} |