Beispiel #1
0
 public function testRegister()
 {
     $app = new App();
     $container = $app->getContainer();
     $package = new Package(['alias' => 'foo']);
     $package->register($app);
     $this->assertTrue($container->has('foo'));
 }
Beispiel #2
0
 public function testGetContainer()
 {
     $this->assertInstanceOf(ContainerInterface::class, $this->app->getContainer());
 }