public function transient() { $container = new ServiceContainer(); $container->test = function () { return new ArrayObject(['test' => false]); }; $container->test['test'] = true; $container->transient('test'); $this->assert($container->test['test'] === false, 'The instance should not have been cached.'); }
public function viewHelpers() { $helpers = new ServiceContainer(); $helpers->configure($this->viewHelperConfiguration); return $helpers; }