You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
259 B
15 lines
259 B
--TEST--
|
|
Test for constructor
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("pimple")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$p = new Pimple\Container();
|
|
var_dump($p[42]);
|
|
|
|
$p = new Pimple\Container(array(42=>'foo'));
|
|
var_dump($p[42]);
|
|
?>
|
|
--EXPECT--
|
|
NULL
|
|
string(3) "foo"
|