diff options
Diffstat (limited to 'server/vendor/pimple/pimple/ext/pimple/tests/008.phpt')
-rw-r--r-- | server/vendor/pimple/pimple/ext/pimple/tests/008.phpt | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/server/vendor/pimple/pimple/ext/pimple/tests/008.phpt b/server/vendor/pimple/pimple/ext/pimple/tests/008.phpt deleted file mode 100644 index db7eeec..0000000 --- a/server/vendor/pimple/pimple/ext/pimple/tests/008.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -Test frozen services ---SKIPIF-- -<?php if (!extension_loaded("pimple")) print "skip"; ?> ---FILE-- -<?php -$p = new Pimple\Container(); -$p[42] = 'foo'; -$p[42] = 'bar'; - -$p['foo'] = function () { }; -$p['foo'] = function () { }; - -$a = $p['foo']; - -try { - $p['foo'] = function () { }; - echo "Exception excpected"; -} catch (RuntimeException $e) { } - -$p[42] = function() { }; -$a = $p[42]; - -try { - $p[42] = function () { }; - echo "Exception excpected"; -} catch (RuntimeException $e) { } -?> ---EXPECTF-- |