/** * @test * @covers ::boot * @covers ::setContainer * @covers ::getContainer * @covers ::getDefaultContainer */ public function canBoot() { try { Bootstrap::boot(); $this->assertInstanceOf(Container::class, Bootstrap::getContainer()); } catch (Exception $e) { $this->fail('Could not boot; ' . PHP_EOL . $e); } }
/** * Get the IoC service container * * @return \Illuminate\Contracts\Container\Container */ protected function getContainer() { return Bootstrap::getContainer(); }