public function testElseIf() { Template::$cacheDirectory = 'tests/cache/'; Template::$templateDirectory = 'tests/templates/'; $expectedResult = '123'; $tpl = new Template(); $tpl->condition = false; $this->assertEquals($expectedResult, $tpl->render('elseif-test')); }