<?php
/**
* PHPTAL templating engine
*
* PHP Version 5
*
* @category HTML
* @package PHPTAL
* @author Laurent Bedubourg <hide@address.com>
* @author Kornel LesiÅski <hide@address.com>
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
* @version SVN: $Id: PhpModeTest.php 888 2010-06-08 09:48:33Z kornel $
* @link http://phptal.org/
*/
class PhpModeTest extends PHPTAL_TestCase
{
function testSimple()
{
$tpl = $this->newPHPTAL('input/php-mode.01.xml');
$res = $tpl->execute();
$exp = normalize_html_file('output/php-mode.01.xml');
$res = normalize_html($res);
$this->assertEquals($exp, $res);
}
function testInContent()
{
$tpl = $this->newPHPTAL('input/php-mode.02.xml');
$res = $tpl->execute();
$exp = normalize_html_file('output/php-mode.02.xml');
$res = normalize_html($res);
$this->assertEquals($exp, $res);
}
}