'); $tpl->execute(); } /** * @expectedException PHPTAL_VariableNotFoundException */ function testErrorsThrow2() { $this->markTestSkipped("tal:define and tal:attributes rely on chains not throwing");//FIXME $tpl = $this->newPHPTAL(); $tpl->setSource('
'); $tpl->execute(); } /** * @expectedException PHPTAL_VariableNotFoundException */ function testErrorsThrow3() { $this->markTestSkipped("tal:define and tal:attributes rely on chains not throwing");//FIXME $tpl = $this->newPHPTAL(); $tpl->setSource('
'); $tpl->execute(); } /** * @expectedException PHPTAL_VariableNotFoundException */ function testErrorsThrow4() { $this->markTestSkipped("tal:define and tal:attributes rely on chains not throwing");//FIXME $tpl = $this->newPHPTAL(); $tpl->setSource('
'); $tpl->execute(); } function testErrorsSilenced() { $tpl = $this->newPHPTAL(); $tpl->setSource('
'); $this->assertEquals('
',$tpl->execute()); } function testZeroIsNotEmpty() { $tpl = $this->newPHPTAL(); $tpl->zero = '0'; $tpl->setSource(''); $this->assertEquals('
0
',$tpl->execute()); } function testFalseLast() { $tpl = $this->newPHPTAL(); $tpl->one_row = array('RESPONSIBLE_OFFICE'=>'responsible_office1'); $tpl->setSource('${resp_office}'); $this->assertEquals('0',$tpl->execute()); } }