public function testAliases() { $container = new Container(); $container['foo'] = 'bar'; $container->alias('foo', 'baz'); $this->assertEquals('bar', $container->make('foo')); $this->assertEquals('bar', $container->make('baz')); $container->bind(array('bam' => 'boom'), function () { return 'pow'; }); $this->assertEquals('pow', $container->make('bam')); $this->assertEquals('pow', $container->make('boom')); $container->instance(array('zoom' => 'zing'), 'wow'); $this->assertEquals('wow', $container->make('zoom')); $this->assertEquals('wow', $container->make('zing')); }