Example #1
0
 public function test_can_define_a_custom_container_definition()
 {
     $app = new Application(__DIR__);
     $app->defineContainer(new ContainerDefinitionStub());
     $this->assertInstanceOf(Container::class, $app->getContainer());
     $this->assertEquals(ContainerDefinitionStub::$mockInstance, $app->getContainer());
 }