Arquivos
hhvm/hphp/test/quick/intercept.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

19 linhas
273 B
PHP

<?php
function foo() { var_dump(__METHOD__); }
function bar() {
var_dump(__METHOD__);
throw new Exception;
}
function boo() {
fb_intercept('foo', 'bar', 'bar');
try {
foo();
} catch (Exception $e) {
var_dump("caught:" . $e->getMessage());
}
}
boo();