Skip to content

Commit

Permalink
Added stub unit tests
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/HTML_Safe/trunk@287066 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
CloCkWeRX committed Aug 11, 2009
1 parent 6b34ec5 commit a75a39f
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/AllTests.php
@@ -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();
}

23 changes: 23 additions & 0 deletions tests/HTML_SafeTest.php
@@ -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)
*/
}
}

0 comments on commit a75a39f

Please sign in to comment.