Source for file tester.php

Documentation is available at tester.php

  1. <?php
  2. //
  3. // tester.php
  4. //
  5. // $Header: /cvs/ext/pear/Crypt_Xtea2/tests/tester.php,v 1.2 2004/09/08 19:21:08 jeroend Exp $
  6. //
  7. /**
  8. * @package Crypt_Xtea2_Test
  9. * @module tester
  10. * @access public
  11. *
  12. * @version $Revision: 1.2 $
  13. * @since 2004/Sep/06
  14. * @author Jeroen Derks <jeroen@derks.it>
  15. */
  16.  
  17. // check parameter
  18. if (IsSet($_SERVER['argc']) && 1 < $_SERVER['argc'] && $_SERVER['argv'][1])
  19. {
  20. // check for xdebug presence to enable profiling
  21. if (extension_loaded('xdebug'))
  22. {
  23. xdebug_start_profiling();
  24. $profiling = true;
  25. echo "Profiling enabled.\n";
  26. flush();
  27. }
  28. }
  29.  
  30. /** Xtea2Test class */
  31. 'Xtea2Test.php';
  32.  
  33. error_reporting(E_ALL & ~E_STRICT);
  34.  
  35. $suite = new PHPUnit_TestSuite('Crypt_Xtea2Test');
  36. $result = PHPUnit::run($suite);
  37. echo $result->toString();
  38.  
  39. // check for profiling to show results
  40. if ($profiling)
  41. xdebug_dump_function_profile(XDEBUG_PROFILER_FS_SUM);
  42. else
  43. Crypt_Xtea2Test::getTimings();
  44. ?>

Documentation generated on Wed, 8 Sep 2004 21:20:46 +0200 by phpDocumentor 1.3.0RC3