PHP Classes

File: vendor/pimple/pimple/ext/pimple/tests/007.phpt

Recommend this page to a friend!
  Classes of uche   Farm Price   vendor/pimple/pimple/ext/pimple/tests/007.phpt   Download  
File: vendor/pimple/pimple/ext/pimple/tests/007.phpt
Role: Example script
Content type: text/plain
Description: Example script
Class: Farm Price
API to get the prices from agriculture markets
Author: By
Last change:
Date: 2 years ago
Size: 370 bytes
 

Contents

Class file image Download
--TEST--
Test for read_dim/write_dim handlers
--SKIPIF--
<?php if (!extension_loaded("pimple")) print "skip"; ?>
--FILE--
<?php
$p
= new Pimple\Container();
$p[42] = 'foo';
$p['foo'] = 42;

echo
$p[42];
echo
"\n";
echo
$p['foo'];
echo
"\n";
try {
   
var_dump($p['nonexistant']);
    echo
"Exception excpected";
} catch (
InvalidArgumentException $e) { }
?>
--EXPECTF--
foo
42