Documentation is available at tester.php
- <?php
- //
- // tester.php
- //
- // $Header: /cvs/ext/pear/Crypt_Xtea2/tests/tester.php,v 1.2 2004/09/08 19:21:08 jeroend Exp $
- //
- /**
- * @package Crypt_Xtea2_Test
- * @module tester
- * @access public
- *
- * @version $Revision: 1.2 $
- * @since 2004/Sep/06
- * @author Jeroen Derks <jeroen@derks.it>
- */
- // check parameter
- if (IsSet($_SERVER['argc']) && 1 < $_SERVER['argc'] && $_SERVER['argv'][1])
- {
- // check for xdebug presence to enable profiling
- if (extension_loaded('xdebug'))
- {
- xdebug_start_profiling();
- $profiling = true;
- echo "Profiling enabled.\n";
- flush();
- }
- }
- /** Xtea2Test class */
- 'Xtea2Test.php';
- error_reporting(E_ALL & ~E_STRICT);
- $suite = new PHPUnit_TestSuite('Crypt_Xtea2Test');
- $result = PHPUnit::run($suite);
- echo $result->toString();
- // check for profiling to show results
- if ($profiling)
- xdebug_dump_function_profile(XDEBUG_PROFILER_FS_SUM);
- else
- Crypt_Xtea2Test::getTimings();
- ?>
Documentation generated on Wed, 8 Sep 2004 21:20:46 +0200 by phpDocumentor 1.3.0RC3