Current File : /home/jvzmxxx/wiki/extensions/Flow/vendor/pimple/pimple/ext/pimple/tests/015.phpt
--TEST--
Test protect()
--SKIPIF--
<?php if (!extension_loaded("pimple")) print "skip"; ?>
--FILE--
<?php

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

$p->protect($f);

var_dump($p['foo']);
--EXPECTF--
object(Closure)#%i (0) {
}