Arquivos
hhvm/hphp/test/quick/debugger/exception1.php
T
Herman Venter a372e0063c Re-enable debugger tests that were suspected of flakiness
These tests failed on the continuous build server, so we disabled them. Since then many other tests have failed and there is no good reason to suspect these tests of being especially flaky, so we may as well re-enable these tests.
2013-06-25 13:19:10 -07:00

59 linhas
887 B
PHP

<?php
// Warning: line numbers are sensitive, do not change
namespace {
class MyException extends Exception { }
class NotAnException { }
function throw_exception() {
throw new Exception();
}
function throw_myexception() {
throw new MyException();
}
function error_undefined_class() {
$x = new NoSuchClass();
}
}
namespace Outer {
class MyException extends \Exception { }
function throw_exception() {
throw new \Exception();
}
function throw_myexception() {
throw new MyException();
}
function error_undefined_class() {
$x = new NoSuchClass();
}
}
namespace Outer\Inner {
class MyException extends \Exception { }
function throw_exception() {
throw new \Exception();
}
function throw_myexception() {
throw new MyException();
}
function error_undefined_class() {
$x = new NoSuchClass();
}
}