コード例 #1
0
ファイル: PackageTest.php プロジェクト: tonis-io/doctrine-orm
 public function testRegister()
 {
     $app = new App();
     $container = $app->getContainer();
     $package = new Package(['alias' => 'foo']);
     $package->register($app);
     $this->assertTrue($container->has('foo'));
 }
コード例 #2
0
ファイル: AppTest.php プロジェクト: ezimuel/tonis
 public function testGetContainer()
 {
     $this->assertInstanceOf(ContainerInterface::class, $this->app->getContainer());
 }