Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.php.net/repository/pear/packages/HTML_Safe/trunk@287066 c90b9560-bf6c-de11-be94-00142212c4b1
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
if (!defined('PHPUnit_MAIN_METHOD')) { | ||
define('PHPUnit_MAIN_METHOD', 'HTML_Safe_AllTests::main'); | ||
} | ||
|
||
require_once 'PHPUnit/TextUI/TestRunner.php'; | ||
require_once 'PHPUnit/Framework/TestSuite.php'; | ||
|
||
require_once 'HTML_SafeTest.php'; | ||
|
||
class HTML_Safe_AllTests { | ||
|
||
public static function main() { | ||
PHPUnit_TextUI_TestRunner::run(self::suite()); | ||
} | ||
|
||
public static function suite() { | ||
$suite = new PHPUnit_Framework_TestSuite( "HTML_Safe Tests"); | ||
$suite->addTestSuite('HTML_SafeTest'); | ||
return $suite; | ||
} | ||
|
||
} | ||
|
||
if (PHPUnit_MAIN_METHOD == 'HTML_Safe_AllTests::main') { | ||
HTML_Safe_AllTests::main(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
require_once 'PHPUnit/Framework/TestCase.php'; | ||
|
||
class HTML_SafeTest extends PHPUnit_Framework_TestCase { | ||
public function testShouldParseCorrectly() { | ||
$this->markTestIncomplete("Implement test coverage of parse() under a number of scenarios"); | ||
/* | ||
function HTML_Safe() | ||
function _closeHandler(&$parser, $name) | ||
function _closeTag($tag) | ||
function _dataHandler(&$parser, $data) | ||
function _escapeHandler(&$parser, $data) | ||
function _openHandler(&$parser, $name, $attrs) | ||
function _writeAttrs ($attrs) | ||
function clear() | ||
function getXHTML () | ||
function parse($doc) | ||
function repackUTF7($str) | ||
function repackUTF7Back($str) | ||
function repackUTF7Callback($str) | ||
*/ | ||
} | ||
} |