2 Test service callback throwing an exception
4 <?php if (!extension_loaded("pimple")) print "skip"; ?>
7 class CallBackException extends RuntimeException { }
9 $p = new Pimple\Container();
10 $p['foo'] = function () { throw new CallBackException; };
12 echo $p['foo'] . "\n";
13 echo "should not come here";
14 } catch (CallBackException $e) {