assertInstanceOf(Smarty::class, $view); } /** * Test the create() function with a X-Forwarded-Proto header. * * @return void * @throws SmartyException * @throws DependencyException * @throws ConfigException */ public function testCreateWithXForwardedProto() { $container = new Container(); $container['session'] = SessionFactory::create($container); $container['locale'] = LocaleManagerFactory::create($container); $container['config'] = ConfigFactory::create($container); $request = Request::createFromEnvironment(Environment::mock()); $view = ViewFactory::create($container, $request->withHeader('X-Forwarded-Proto', 'https')); $this->assertInstanceOf(Smarty::class, $view); } }