assertInstanceOf(Smarty::class, $view); } /** * Test the create() function with a X-Forwarded-Proto header. * * @return void */ public function testCreateWithXForwardedProto() { $request = Request::createFromEnvironment(Environment::mock()); $view = ViewFactory::create(new Container(), $request->withHeader('X-Forwarded-Proto', 'https')); $this->assertInstanceOf(Smarty::class, $view); } }