503f75d08b
These names don't make sense now that we run both suites the same way.
15 linhas
279 B
PHP
15 linhas
279 B
PHP
<?php
|
|
function doThrow() { throw new Exception("blah!"); }
|
|
function foo() {
|
|
foreach (array(1, 2, 3) as $_) {
|
|
doThrow();
|
|
}
|
|
try { echo "Hi\n"; } catch (Exception $ex) { echo "We should not reach here\n"; }
|
|
}
|
|
|
|
try {
|
|
foo();
|
|
} catch (Exception $x) {
|
|
echo "it's ok\n";
|
|
}
|