"Fossies" - the Fresh Open Source Software Archive

Member "ILIAS-5.4.9/libs/composer/vendor/pimple/pimple/ext/pimple/tests/007.phpt" (24 Jan 2020, 370 Bytes) of package /linux/www/ILIAS-5.4.9.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 --TEST--
    2 Test for read_dim/write_dim handlers
    3 --SKIPIF--
    4 <?php if (!extension_loaded("pimple")) print "skip"; ?>
    5 --FILE--
    6 <?php 
    7 $p = new Pimple\Container();
    8 $p[42] = 'foo';
    9 $p['foo'] = 42;
   10 
   11 echo $p[42];
   12 echo "\n";
   13 echo $p['foo'];
   14 echo "\n";
   15 try {
   16 	var_dump($p['nonexistant']);
   17 	echo "Exception excpected";
   18 } catch (InvalidArgumentException $e) { }
   19 ?>
   20 --EXPECTF--
   21 foo
   22 42