"; ?>testtest\'/>'); $this->assertEquals('
', $tpl->execute()); } public function testPHPBlockShort() { ini_set('short_open_tag', 1); if (!ini_get('short_open_tag')) $this->markTestSkipped("PHP is buggy"); $tpl = $this->newPHPTAL(); $tpl->setSource('"); ?>testtest\'/>'); $this->assertEquals('
', $tpl->execute()); ini_restore('short_open_tag'); } public function testPHPBlockNoShort() { ini_set('short_open_tag', 0); if (ini_get('short_open_tag')) $this->markTestSkipped("PHP is buggy"); $tpl = $this->newPHPTAL(); $tpl->setSource('"); ?>testtest\'/>'); try { $this->assertEquals(normalize_html('
'), normalize_html($tpl->execute())); } catch(PHPTAL_ParserException $e) {/* xml ill-formedness error is ok too */} ini_restore('short_open_tag'); } }