1 : <?php
2 : /**
3 : * Main test suite for Services_Openstreetmap
4 : *
5 : * PHP Version 5
6 : *
7 : * @category Services
8 : * @package Services_Openstreetmap
9 : * @subpackage UnitTesting
10 : * @author Ken Guest <kguest@php.net>
11 : * @license BSD http://www.opensource.org/licenses/bsd-license.php
12 : * @version Release: @package_version@
13 : * @link AllTests.php
14 : */
15 : $version = '@package_version@';
16 : if (strstr($version, 'package_version')) {
17 : set_include_path(dirname(dirname(__FILE__)) . ':' . get_include_path());
18 : }
19 :
20 : if (!defined('PHPUnit_MAIN_METHOD')) {
21 : define('PHPUnit_MAIN_METHOD', 'AllTests::main');
22 : }
23 :
24 : require_once 'PHPUnit/TextUI/TestRunner.php';
25 :
26 : require_once 'ChangesetTest.php';
27 : require_once 'ConfigTest.php';
28 : require_once 'NodeTest.php';
29 : require_once 'OSMTest.php';
30 : require_once 'RelationTest.php';
31 : require_once 'UserTest.php';
32 : require_once 'WayTest.php';
33 :
34 : /**
35 : * Main test suite for Services_Openstreetmap.
36 : *
37 : * @category Services
38 : * @package Services_Openstreetmap
39 : * @subpackage UnitTesting
40 : * @author Ken Guest <kguest@php.net>
41 : * @license BSD http://www.opensource.org/licenses/bsd-license.php
42 : * @link AllTests.php
43 : */
44 : class AllTests
45 : {
46 : /**
47 : * Launches the TextUI test runner
48 : *
49 : * @return void
50 : * @uses PHPUnit_TextUI_TestRunner
51 : */
52 : public static function main()
53 : {
54 0 : PHPUnit_TextUI_TestRunner::run(self::suite());
55 0 : }
56 :
57 : /**
58 : * Adds all class test suites into the master suite
59 : *
60 : * @return PHPUnit_Framework_TestSuite a master test suite
61 : * containing all class test suites
62 : * @uses PHPUnit_Framework_TestSuite
63 : */
64 : public static function suite()
65 : {
66 0 : $suite = new PHPUnit_Framework_TestSuite('Services_Openstreetmap Tests');
67 0 : $suite->addTestSuite('ChangesetTest');
68 0 : $suite->addTestSuite('ConfigTest');
69 0 : $suite->addTestSuite('OSMTest');
70 0 : $suite->addTestSuite('NodeTest');
71 0 : $suite->addTestSuite('RelationTest');
72 0 : $suite->addTestSuite('UserTest');
73 0 : $suite->addTestSuite('WayTest');
74 :
75 0 : return $suite;
76 : }
77 : }
78 :
79 : if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
80 : AllTests::main();
81 : }
|