-
Notifications
You must be signed in to change notification settings - Fork 5
/
AllTests.php
54 lines (48 loc) · 1.72 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* All test suite
*
* PHP Version 5
*
* @package Math_Numerical_RootFinding
* @subpackage UnitTests
* @link http://pear.php.net/package/Math_Numerical_RootFinding
* @version CVS: $Id$
* @since File available since Release 1.1.0a1
*/
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'PEAR_Size_AllTests::main');
}
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'GeneralTest.php';
require_once 'Method/BisectionTest.php';
require_once 'Method/FalsePositionTest.php';
require_once 'Method/FixedPointTest.php';
require_once 'Method/NewtonRaphsonTest.php';
require_once 'Method/NewtonRaphson2Test.php';
require_once 'Method/RalstonRabinowitzTest.php';
require_once 'Method/SecantTest.php';
class Math_Numerical_RootFinding_AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('Math_Numerical_RootFinding All Tests');
$suite->addTestSuite('Math_Numerical_RootFinding_GeneralTest');
$suite->addTestSuite('Math_Numerical_RootFinding_BisectionTest');
$suite->addTestSuite('Math_Numerical_RootFinding_FalsePositionTest');
$suite->addTestSuite('Math_Numerical_RootFinding_FixedPointTest');
$suite->addTestSuite('Math_Numerical_RootFinding_NewtonRaphsonTest');
$suite->addTestSuite('Math_Numerical_RootFinding_NewtonRaphson2Test');
$suite->addTestSuite('Math_Numerical_RootFinding_RalstonRabinowitzTest');
$suite->addTestSuite('Math_Numerical_RootFinding_SecantTest');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Math_Numerical_RootFinding_AllTests::main') {
Math_Numerical_RootFinding_AllTests::main();
}