PHP Classes

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

Recommend this page to a friend!
  Classes of Gavin Gordon Markowski  >  Helphp PHP Class Generator  >  vendor/pimple/pimple/ext/pimple/tests/013.phpt  >  Download  
File: vendor/pimple/pimple/ext/pimple/tests/013.phpt
Role: Example script
Content type: text/plain
Description: Example script
Class: Helphp PHP Class Generator
Generate classes from configuration parameters
Author: By
Last change:
Date: 4 months ago
Size: 368 bytes
 

Contents

Class file image Download
--TEST--
Test keys()
--SKIPIF--
<?php if (!extension_loaded("pimple")) print "skip"; ?>
--FILE--
<?php

$p
= new Pimple\Container();

var_dump($p->keys());

$p['foo'] = 'bar';
$p[] = 'foo';

var_dump($p->keys());

unset(
$p['foo']);

var_dump($p->keys());
?>
--EXPECTF--
array(0) {
}
array(2) {
  [0]=>
  string(3) "foo"
  [1]=>
  int(0)
}
array(1) {
  [0]=>
  int(0)
}

For more information send a message to info at phpclasses dot org.