public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend'); // place other tests here for incubator suite $suite->addTestSuite('Zend_AclTest'); $suite->addTestSuite('Zend_AuthTest'); $suite->addTest(Zend_Auth_AllTests::suite()); $suite->addTestSuite('Zend_Console_GetoptTest'); $suite->addTest(Zend_Currency_AllTests::suite()); $suite->addTestSuite('Zend_DateTest'); $suite->addTest(Zend_Date_AllTests::suite()); $suite->addTestSuite('Zend_LocaleTest'); $suite->addTest(Zend_Locale_AllTests::suite()); $suite->addTest(Zend_Mail_AllTests::suite()); $suite->addTestSuite('Zend_MeasureTest'); $suite->addTest(Zend_Measure_AllTests::suite()); // $suite->addTest(Zend_Registry_AllTests::suite()); // $suite->addTest(Zend_Session_AllTests::suite()); $suite->addTestSuite('Zend_TimeSyncTest'); return $suite; }
<?php if (!defined('PHPUnit_MAIN_METHOD')) { define('PHPUnit_MAIN_METHOD', 'Zend_Currency_AllTests::main'); } require_once 'PHPUnit/Framework/TestSuite.php'; require_once 'PHPUnit/TextUI/TestRunner.php'; //require_once 'Zend/Currency/CurrencyTest.php'; class Zend_Currency_AllTests { public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Currency'); // $suite->addTestSuite('Zend_Currency_CurrencyTest'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'Zend_Currency_AllTests::main') { Zend_Currency_AllTests::main(); }