2 Test extend() with exception in service extension
4 <?php if (!extension_loaded("pimple")) print "skip"; ?>
8 $p = new Pimple\Container();
9 $p[12] = function ($v) { return 'foo';};
11 $c = $p->extend(12, function ($w) { throw new BadMethodCallException; });
15 echo "Exception expected";
16 } catch (BadMethodCallException $e) { }