Beispiel #1
0
 public function testBoundInstanceAndAliasCheckViaArrayAccess()
 {
     $container = new Container();
     $container->instance('object', new StdClass());
     $container->alias('object', 'alias');
     $this->assertTrue(isset($container['object']));
     $this->assertTrue(isset($container['alias']));
 }