1<?php 2/** 3 * @category Web Services 4 * @package SOAP 5 */ 6 7if (!defined('PHPUnit_MAIN_METHOD')) { 8 define('PHPUnit_MAIN_METHOD', 'SOAP_AllTests::main'); 9} 10 11require_once 'PHPUnit/Framework/TestSuite.php'; 12require_once 'PHPUnit/TextUI/TestRunner.php'; 13 14 15chdir(dirname(__FILE__)); 16require_once 'SOAP_BugsTest.php'; 17 18 19class SOAP_AllTests 20{ 21 public static function main() 22 { 23 24 PHPUnit_TextUI_TestRunner::run(self::suite()); 25 } 26 27 public static function suite() 28 { 29 $suite = new PHPUnit_Framework_TestSuite('SOAP Tests'); 30 /** Add testsuites, if there is. */ 31 $suite->addTestSuite('SOAP_BugsTest'); 32 33 return $suite; 34 } 35} 36 37if (PHPUnit_MAIN_METHOD == 'SOAP_AllTests::main') { 38 SOAP_AllTests::main(); 39} 40?>