PATH:
home
/
letacommog
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
vendor
/
pimple
/
pimple
/
ext
/
pimple
/
tests
--TEST-- Test service is called as callback for every callback type --SKIPIF-- <?php if (!extension_loaded("pimple")) print "skip"; ?> --FILE-- <?php function callme() { return 'called'; } $a = function() { return 'called'; }; class Foo { public static function bar() { return 'called'; } } $p = new Pimple\Container(); $p['foo'] = 'callme'; echo $p['foo'] . "\n"; $p['bar'] = $a; echo $p['bar'] . "\n"; $p['baz'] = "Foo::bar"; echo $p['baz'] . "\n"; $p['foobar'] = array('Foo', 'bar'); var_dump($p['foobar']); ?> --EXPECTF-- callme called Foo::bar array(2) { [0]=> string(3) "Foo" [1]=> string(3) "bar" }
[+]
..
[-] 008.phpt
[edit]
[-] 010.phpt
[edit]
[-] 014.phpt
[edit]
[-] 018.phpt
[edit]
[-] bench_shared.phpb
[edit]
[-] 004.phpt
[edit]
[-] 019.phpt
[edit]
[-] 001.phpt
[edit]
[-] 017_1.phpt
[edit]
[-] 005.phpt
[edit]
[-] 009.phpt
[edit]
[-] 011.phpt
[edit]
[-] 015.phpt
[edit]
[-] 003.phpt
[edit]
[-] 007.phpt
[edit]
[-] bench.phpb
[edit]
[-] 013.phpt
[edit]
[-] 017.phpt
[edit]
[-] 012.phpt
[edit]
[-] 016.phpt
[edit]
[-] 002.phpt
[edit]
[-] 006.phpt
[edit]