source: pro-bachkim-filespace/sourcecode/api.violet.vn/www/plugins/sfPropel13Plugin/lib/vendor/phing/test/run-tests.php

Last change on this file was 19, checked in by dungnv, 11 years ago
File size: 2.6 KB
Line 
1<?php
2
3// Set up environment (include_path, etc.) for running these tests
4define('PHPUnit2_MAIN_METHOD', "don't let PHPUnit try to auto-invoke anything!");
5
6include_once 'PHPUnit2/TextUI/TestRunner.php';
7include_once 'PHPUnit2/Framework/TestSuite.php';
8
9// Probably should use PHING_HOME here instead of assuming that test/ is still subdir.
10ini_set('include_path', realpath(dirname(__FILE__) . '/classes') . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/../classes') . PATH_SEPARATOR . ini_get('include_path'));
11
12define('PHING_TEST_BASE', dirname(__FILE__));
13
14// STARTUP PHING
15require_once 'phing/Phing.php';
16
17Phing::startup();
18
19
20// For now just add all classes to here -- this is ugly, but
21// we don't need to pollute the test structure with AllTest classes
22// yet ...
23
24
25// ----------------------------------------------------------
26// core
27// ----------------------------------------------------------
28
29$coreSuite = new PHPUnit2_Framework_TestSuite("Phing Core");
30include_once 'phing/IntrospectionHelperTest.php';
31$coreSuite->addTestSuite(new ReflectionClass('IntrospectionHelperTest'));
32
33
34// ----------------------------------------------------------
35// types
36// ----------------------------------------------------------
37
38$typesSuite = new PHPUnit2_Framework_TestSuite("Phing Types");
39
40include_once 'phing/types/MapperTest.php';
41$typesSuite->addTestSuite(new ReflectionClass('MapperTest'));
42
43include_once 'phing/filters/LineContainsTest.php';
44$typesSuite->addTestSuite(new ReflectionClass('LineContainsTest'));
45
46include_once 'phing/types/CommandlineTest.php';
47$typesSuite->addTestSuite(new ReflectionClass('CommandlineTest'));
48
49include_once 'phing/types/FileSetTest.php';
50$typesSuite->addTestSuite(new ReflectionClass('FileSetTest'));
51
52// ----------------------------------------------------------
53// tasks
54// ----------------------------------------------------------
55
56$tasksSuite = new PHPUnit2_Framework_TestSuite("Phing Tasks");
57
58include_once 'phing/tasks/TypedefTaskTest.php';
59$tasksSuite->addTestSuite(new ReflectionClass('TypedefTaskTest'));
60
61
62// Conditions
63include_once 'phing/tasks/condition/ContainsConditionTest.php';
64include_once 'phing/tasks/condition/EqualsConditionTest.php';
65$tasksSuite->addTestSuite(new ReflectionClass('ContainsConditionTest'));
66$tasksSuite->addTestSuite(new ReflectionClass('EqualsConditionTest'));
67
68include_once 'phing/tasks/PropertyTaskTest.php';
69$tasksSuite->addTestSuite(new ReflectionClass('PropertyTaskTest'));
70
71
72 
73$suite = new PHPUnit2_Framework_TestSuite('Phing Tests');
74$suite->addTest($coreSuite);
75$suite->addTest($typesSuite);
76$suite->addTest($tasksSuite);
77
78
79
80// Run it!
81PHPUnit2_TextUI_TestRunner::run($suite);
82
83
84// SHUTDOWN PHING
85Phing::shutdown();
Note: See TracBrowser for help on using the repository browser.