Пример #1
0
 /**
  * @expectedException Filchos\Imago\Exception\InvalidKeyException
  */
 public function testDeniedByCallback()
 {
     $container = new LocalContainer();
     $container->set('inhabitants', 'not so many')->force('inhabitants', function ($value) {
         return is_int($value);
     });
 }
Пример #2
0
 public function testAllowNull()
 {
     $container = new LocalContainer();
     $container->set('nothing', null);
     $this->assertTrue($container->has('nothing'));
 }