testInitWithInValidPath(); App::initWithPath(__DIR__ . '/config/framework.php'); $this->testCreateServerRequest(); $this->testGetResponseFactory(); $this->testCreateContainer(); $this->testGetCustomEnvironments(); } public function testInitWithInValidPath() { $path = 'path/to/your/options.php'; $this->expectException(InvalidArgumentException::class, function () use($path) { App::initWithPath($path); }); } public function testCreateServerRequest() { $request = App::createServerRequest(); $this->assertInstanceOf(ServerRequestInterface::class, $request); } public function testGetResponseFactory() { $responseFactory = App::getResponseFactory(); $this->assertInstanceOf(ResponseFactoryInterface::class, $responseFactory); } public function testCreateContainer() { $definitions = []; // Your container definitions $options = []; // Your container options $container = App::createContainer($definitions, $options); $this->assertInstanceOf(ContainerInterface::class, $container); $container = App::getContainer(); $this->assertInstanceOf(ContainerInterface::class, $container); } public function testGetCustomEnvironments() { $environments = App::getCustomEnvironments(); foreach ($environments as $environment) { $this->assertTrue(is_string($environment)); } } }