Пример #1
0
 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');
 }
Пример #2
0
 public function testGetDefaultValue()
 {
     $container = \jakulov\Container\Container::getInstance([]);
     $this->assertEquals('foo', $container->get('key', 'foo'));
 }