-
Notifications
You must be signed in to change notification settings - Fork 14
/
AllTests.php
34 lines (26 loc) · 903 Bytes
/
AllTests.php
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
27
28
29
30
31
32
33
<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Crypt_RSA_AllTests::main');
}
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'FactoryTest.php';
require_once 'DriverTest.php';
require_once 'KeyTest.php';
require_once 'KeyPairTest.php';
class Crypt_RSA_AllTests {
public static function main() {
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite( "Crypt_RSA Tests");
$suite->addTestSuite('Crypt_RSA_DriverTest');
$suite->addTestSuite('Crypt_RSA_KeyTest');
$suite->addTestSuite('Crypt_RSA_KeyPairTest');
$suite->addTestSuite('Crypt_RSA_FactoryTest');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Crypt_RSA_AllTests::main') {
Crypt_RSA_AllTests::main();
}