PHP Classes

File: vendor/pimple/pimple/ext/pimple/tests/017.phpt

Recommend this page to a friend!
  Classes of Gavin Gordon Markowski  >  Helphp PHP Class Generator  >  vendor/pimple/pimple/ext/pimple/tests/017.phpt  >  Download  
File: vendor/pimple/pimple/ext/pimple/tests/017.phpt
Role: Example script
Content type: text/plain
Description: Example script
Class: Helphp PHP Class Generator
Generate classes from configuration parameters
Author: By
Last change:
Date: 4 months ago
Size: 383 bytes


Class file image Download
Test extend() with exception in service extension
<?php if (!extension_loaded("pimple")) print "skip"; ?>

= new Pimple\Container();
$p[12] = function ($v) { return 'foo';};

$c = $p->extend(12, function ($w) { throw new BadMethodCallException; });

try {
"Exception expected";
} catch (
BadMethodCallException $e) { }

For more information send a message to info at phpclasses dot org.