Esempio n. 1
0
 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.');
 }
Esempio n. 2
0
 public function viewHelpers()
 {
     $helpers = new ServiceContainer();
     $helpers->configure($this->viewHelperConfiguration);
     return $helpers;
 }