home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / unit_tests.php < prev    next >
Encoding:
PHP Script  |  2004-03-24  |  902 b   |  26 lines

  1. <?php
  2. /**
  3. * Requires SimpleTest version 1.0Alpha8 or higher.
  4. * Unit Tests using the SimpleTest framework:
  5. * http://www.lastcraft.com/simple_test.php
  6. * @package XML
  7. * @version $Id: unit_tests.php,v 1.4 2003/10/05 14:58:15 lastcraft Exp $
  8. */
  9. if (!defined('SIMPLE_TEST')) {
  10.     define('SIMPLE_TEST', 'simpletest/');     // Add to php.ini path (should be the default).
  11. }
  12. require_once(SIMPLE_TEST . 'unit_tester.php');
  13. require_once(SIMPLE_TEST . 'mock_objects.php');
  14. require_once(SIMPLE_TEST . 'reporter.php');
  15.  
  16. if (!defined('XML_HTMLSAX')) {
  17.     define('XML_HTMLSAX', '../../');
  18. }
  19. require_once(XML_HTMLSAX . 'XML_HTMLSax.php');
  20. require_once(XML_HTMLSAX . 'HTMLSax/XML_HTMLSax_States.php');
  21. require_once(XML_HTMLSAX . 'HTMLSax/XML_HTMLSax_Decorators.php');
  22.  
  23. $test = &new GroupTest('XML::HTMLSax Tests');
  24. $test->addTestFile('xml_htmlsax_test.php');
  25. $test->run(new HtmlReporter());
  26. ?>