CVS update: /cowiki/misc/development/tests/
[email protected] 30 May 2005 16:54:10 -0000
| Newsgroups | gmane.comp.php.cowiki.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: cmarble Date: 2005/05/30 09:54:10 Modified: cowiki/misc/development/tests/RunTests.php cowiki/misc/development/tests/class.ParserTest.php Log: Latest tweak. File Changes: Directory: /cowiki/misc/development/tests/ ========================================== File [changed]: RunTests.php Url: http://cowiki.tigris.org/source/browse/cowiki/misc/development/tests/RunTests.php?r1=1.3&r2=1.4 Delta lines: +4 -2 ------------------- --- RunTests.php 29 May 2005 15:46:09 -0000 1.3 +++ RunTests.php 30 May 2005 16:54:07 -0000 1.4 @@ -1,7 +1,7 @@ <?php /** * - * $Id: RunTests.php,v 1.3 2005/05/29 15:46:09 cmarble Exp $ + * $Id: RunTests.php,v 1.4 2005/05/30 16:54:07 cmarble Exp $ * * This file is part of coWiki. coWiki is free software under the terms of * the GNU General Public License (GPL). Read the LICENSE file. If you did @@ -16,7 +16,7 @@ * @author Paul Hanchett <[email protected]> * @copyright (C) Paul Hanchett, 2005 * @license http://www.gnu.org/licenses/gpl.html - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ * */ // @@ -28,6 +28,7 @@ $result = new PHPUnit_TestResult(); $result->addListener(new ConsoleListener); + $suite->addTestSuite(ParserBasicFormattingTest); $suite->addTestSuite(ParserBoldAsteriskFormattingTest); @@ -61,6 +62,7 @@ $suite->addTestSuite(ParserQTagFormattingTest); $suite->addTestSuite(ParserOtherProcessContentFormattingTest); + $suite->addTestSuite(ParserOtherParseFormattingTest); $suite->run($result); File [changed]: class.ParserTest.php Url: http://cowiki.tigris.org/source/browse/cowiki/misc/development/tests/class.ParserTest.php?r1=1.2&r2=1.3 Delta lines: +11 -2 -------------------- --- class.ParserTest.php 29 May 2005 15:46:09 -0000 1.2 +++ class.ParserTest.php 30 May 2005 16:54:07 -0000 1.3 @@ -1,7 +1,7 @@ <?php /** * - * $Id: class.ParserTest.php,v 1.2 2005/05/29 15:46:09 cmarble Exp $ + * $Id: class.ParserTest.php,v 1.3 2005/05/30 16:54:07 cmarble Exp $ * * This file is part of coWiki. coWiki is free software under the terms of * the GNU General Public License (GPL). Read the LICENSE file. If you did @@ -16,7 +16,7 @@ * @author Paul Hanchett <[email protected]> * @copyright (C) Paul Hanchett, 2005 * @license http://www.gnu.org/licenses/gpl.html - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ * */ @@ -1501,5 +1501,14 @@ $this->assertEquals($outputString, $this->p->parse($inputString)); $this->assertEquals(trim($inputString), trim($this->r->parse($outputString))); } + + function testHeadingVariable2() + { + $inputString = "+ %TITLE%\nmore text"; + $outputString = "<h1>\n<var name=\"TITLE\">\n</var>\n</h1>\n<p>more text</p>"; + //$this->assertEquals($outputString, $this->p->parse($inputString)); + $this->assertEquals(trim($inputString), trim($this->r->parse($outputString))); + } + } ?>