|
Revision 307, 2.3 kB
(checked in by hans, 10 months ago)
|
Refs #188 - Adding work-in-progress (still-broken!) namespace support.
|
- Property svn:keywords set to
author date id revision
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
define('PHPUnit2_MAIN_METHOD', "don't let PHPUnit try to auto-invoke anything!"); |
|---|
| 5 |
|
|---|
| 6 |
include_once 'PHPUnit2/TextUI/TestRunner.php'; |
|---|
| 7 |
include_once 'PHPUnit2/Framework/TestSuite.php'; |
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
ini_set('include_path', realpath(dirname(__FILE__) . '/classes') . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/../classes') . PATH_SEPARATOR . ini_get('include_path')); |
|---|
| 11 |
|
|---|
| 12 |
define('PHING_TEST_BASE', dirname(__FILE__)); |
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
Phing::startup(); |
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
$coreSuite = new PHPUnit2_Framework_TestSuite("Phing Core"); |
|---|
| 30 |
|
|---|
| 31 |
$coreSuite->addTestSuite(new ReflectionClass('IntrospectionHelperTest')); |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
$typesSuite = new PHPUnit2_Framework_TestSuite("Phing Types"); |
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
$typesSuite->addTestSuite(new ReflectionClass('MapperTest')); |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
$typesSuite->addTestSuite(new ReflectionClass('LineContainsTest')); |
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
$typesSuite->addTestSuite(new ReflectionClass('CommandlineTest')); |
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
$typesSuite->addTestSuite(new ReflectionClass('FileSetTest')); |
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
$tasksSuite = new PHPUnit2_Framework_TestSuite("Phing Tasks"); |
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
$tasksSuite->addTestSuite(new ReflectionClass('TypedefTaskTest')); |
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
$tasksSuite->addTestSuite(new ReflectionClass('ContainsConditionTest')); |
|---|
| 66 |
$tasksSuite->addTestSuite(new ReflectionClass('EqualsConditionTest')); |
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 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 |
|
|---|
| 81 |
PHPUnit2_TextUI_TestRunner::run($suite); |
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
Phing::shutdown(); |
|---|