[Cs-content-commits] SF.net SVN: cs-content:[458] trunk/1.0/tests/testOfCSContent.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-09-14 15:21:27
|
Revision: 458 http://cs-content.svn.sourceforge.net/cs-content/?rev=458&view=rev Author: crazedsanity Date: 2009-09-14 15:21:16 +0000 (Mon, 14 Sep 2009) Log Message: ----------- Add a couple of tests to ensure $page->templateObj->varvals['out'] matches the printed data. Modified Paths: -------------- trunk/1.0/tests/testOfCSContent.php Modified: trunk/1.0/tests/testOfCSContent.php =================================================================== --- trunk/1.0/tests/testOfCSContent.php 2009-09-14 15:20:16 UTC (rev 457) +++ trunk/1.0/tests/testOfCSContent.php 2009-09-14 15:21:16 UTC (rev 458) @@ -120,6 +120,7 @@ $this->assertEqual($checkThis, file_get_contents($filesDir .'/gptest_all-together.txt')); + $this->assertEqual($checkThis, $page->templateObj->varvals['out']); //now let's rip all the template rows out & add them back in. $rowDefs = $page->get_block_row_defs('content'); @@ -137,8 +138,10 @@ $checkThis2 = $page->return_printed_page(); $this->assertEqual($checkThis, $checkThis2); + $this->assertEqual($checkThis2, $page->templateObj->varvals['out']); $checkThis = $page->return_printed_page(0); + $this->assertTrue(preg_match('/\{.\S+?\}/', $page->templateObj->varvals['out'])); $this->assertTrue(preg_match('/\{.\S+?\}/', $checkThis)); //clone the page object so we can change stuff & not affect the original. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |