summaryrefslogtreecommitdiff
path: root/Zend/tests/static_method_non_existing_class.phpt
blob: 752655d22782653b0a4b6c8e29f161cca2f9b8a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Calling a static method on a non-existing class
--FILE--
<?php

$str = "foo";
try {
    Test::{$str . "bar"}();
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}

?>
--EXPECT--
Class "Test" not found