* @author Kornel LesiƄski * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * @version SVN: $Id: $ * @link http://phptal.org/ */ class HTMLGeneratorTest extends PHPTAL_TestCase { function testTalDoesntConsumeNewline() { $res = $this->newPHPTAL()->setSource('I\'m on a line I\'m on a line')->execute(); $this->assertEquals('I\'m on a line I\'m on a line', $res); } function testPHPConsumesNewline() { $res = $this->newPHPTAL()->setSource('

No new line No new line

')->execute(); $this->assertEquals("

No new lineNo new line

", $res); } }