Example #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->viewFactoryMock = $this->getMock(Factory::class, [], [], '', false);
     $this->testInstance = new Template($this->getApplicationMock());
     $this->testInstance->setEnvironment($this->viewFactoryMock);
     $this->viewMock = $this->getMock(View::class, [], [], '', false);
     $this->templateMock1 = $this->getMock(TemplateCompiler::class, [], [], '', false);
     $this->templateMock2 = $this->getMock(TemplateCompiler::class, [], [], '', false);
 }