Ejemplo n.º 1
0
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite();
     $suite->setName("SCA_SDOTestSuite");
     $suite->addTest(new PHPUnit_Framework_TestSuite("SDOAPITest"));
     $suite->addTest(new PHPUnit_Framework_TestSuite("XMLDASTest"));
     $suite->addTest(new PHPUnit_Framework_TestSuite("JsonDASTest"));
     $suite->addTest(SCA_TestSuite::suite());
     $suite->addTest(SDO_DAS_Relational_TestSuite::suite());
     return $suite;
 }
Ejemplo n.º 2
0
| All Rights Reserved.                                                 |
+----------------------------------------------------------------------+
|                                                                      |
| Licensed under the Apache License, Version 2.0 (the "License"); you  |
| may not use this file except in compliance with the License. You may |
| obtain a copy of the License at                                      |
| http://www.apache.org/licenses/LICENSE-2.0                           |
|                                                                      |
| Unless required by applicable law or agreed to in writing, software  |
| distributed under the License is distributed on an "AS IS" BASIS,    |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or      |
| implied. See the License for the specific language governing         |
| permissions and limitations under the License.                       |
+----------------------------------------------------------------------+
| Author: Matthew Peters                                               |
+----------------------------------------------------------------------+
*/
/**********************************************************
* Get a TestRunner
**********************************************************/
require_once "PHPUnit/TextUI/TestRunner.php";
$aTestRunner = new PHPUnit_TextUI_TestRunner();
/**********************************************************
* Get our test suite
/**********************************************************/
require_once 'TestSuite.php';
$suite = SCA_TestSuite::suite();
/**********************************************************
* Run it
/**********************************************************/
$result = $aTestRunner->doRun($suite);