/** * @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); }); }
public function testAllowNull() { $container = new LocalContainer(); $container->set('nothing', null); $this->assertTrue($container->has('nothing')); }