public function testGetContainer() { $app = \jakulov\Corpuscle\Core\App::getInstance(['app' => 'test']); $test = $app->get('app'); $this->assertEquals('test', $test); $this->assertEquals(\jakulov\Container\Container::getInstance()->get('app'), 'test'); }
public function testGetDefaultValue() { $container = \jakulov\Container\Container::getInstance([]); $this->assertEquals('foo', $container->get('key', 'foo')); }