Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (34 sloc) 1.156 kb
<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Crypt_DiffieHellman_AllTests::main');
}
if ($fp = @fopen('PHPUnit/Autoload.php', 'r', true)) {
require_once 'PHPUnit/Autoload.php';
} elseif ($fp = @fopen('PHPUnit/Framework.php', 'r', true)) {
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
} else {
die('skip could not find PHPUnit');
}
fclose($fp);
require_once dirname(__FILE__) . '/DiffieHellmanTest.php';
class Crypt_DiffieHellman_AllTests
{
public static function main()
{
$parameters = array();
if (TESTS_GENERATE_REPORT && extension_loaded('xdebug')) {
$parameters['reportDirectory'] = TESTS_GENERATE_REPORT_TARGET;
}
PHPUnit_TextUI_TestRunner::run(self::suite(), $parameters);
}
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('PEAR - Crypt_DiffieHellman');
$suite->addTestSuite('Crypt_DiffieHellmanTest');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Crypt_DiffieHellman_AllTests::main') {
Crypt_DiffieHellman_AllTests::main();
}
Jump to Line
Something went wrong with that request. Please try again.