static_method_non_existing_class.phpt 215 B

123456789101112131415
  1. --TEST--
  2. Calling a static method on a non-existing class
  3. --FILE--
  4. <?php
  5. $str = "foo";
  6. try {
  7. Test::{$str . "bar"}();
  8. } catch (Error $e) {
  9. echo $e->getMessage(), "\n";
  10. }
  11. ?>
  12. --EXPECT--
  13. Class 'Test' not found