Arquivos
hhvm/hphp/test/quick/debugger/exception1.php.disabled
T
Herman Venter 1197521469 disable flaky test
Fails on continuous build server
2013-06-21 16:37:11 -07:00

59 linhas
887 B
Plaintext

<?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();
}
}