File: unit_tests.php

package info (click to toggle)
php-xml-htmlsax3 3.0.0%2Bcvs01112007-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 160 kB
  • ctags: 327
  • sloc: php: 1,060; xml: 152; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 853 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* Requires SimpleTest version 1.0Alpha8 or higher.
* Unit Tests using the SimpleTest framework:
* http://www.lastcraft.com/simple_test.php
* @package XML
* @version $Id: unit_tests.php,v 1.3 2004/06/02 14:23:48 hfuecks Exp $
*/
if (!defined('SIMPLE_TEST')) {
    define('SIMPLE_TEST', 'simpletest/');     // Add to php.ini path (should be the default).
}
require_once(SIMPLE_TEST . 'unit_tester.php');
require_once(SIMPLE_TEST . 'mock_objects.php');
require_once(SIMPLE_TEST . 'reporter.php');

if (!defined('XML_HTMLSAX3')) {
    define('XML_HTMLSAX3', '../');
}
require_once(XML_HTMLSAX3 . 'HTMLSax3.php');
require_once(XML_HTMLSAX3 . 'HTMLSax3/States.php');
require_once(XML_HTMLSAX3 . 'HTMLSax3/Decorators.php');

$test = &new GroupTest('XML::HTMLSax3 Tests');
$test->addTestFile('xml_htmlsax_test.php');
$test->run(new HtmlReporter());
?>