public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend'); /* * Perform the tests for Zend_Controller component now. */ $suite->addTest(Zend_Controller_AllTests::suite()); /* * Perform the tests for Zend_Crypt component now. * * Currenty there's a missing exception class; turning it off */ // $suite->addTest(Zend_Crypt_AllTests::suite()); /* * Perform the tests for Zend_Db component now. */ $suite->addTest(Zend_Db_AllTests::suite()); /* * Perform the tests for Zend_Json component now. */ $suite->addTest(Zend_Json_AllTests::suite()); /* * Perform the tests for Zend_Service component now. */ $suite->addTest(Zend_Service_AllTests::suite()); return $suite; }
public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend'); $suite->addTestSuite('Zend_AclTest'); $suite->addTest(Zend_Cache_AllTests::suite()); $suite->addTest(Zend_Db_AllTests::suite()); $suite->addTestSuite('Zend_ConfigTest'); $suite->addTest(Zend_Config_AllTests::suite()); $suite->addTest(Zend_Controller_AllTests::suite()); $suite->addTestSuite('Zend_DateTest'); $suite->addTest(Zend_Date_AllTests::suite()); $suite->addTest(Zend_Feed_AllTests::suite()); $suite->addTestSuite('Zend_LocaleTest'); $suite->addTest(Zend_Locale_AllTests::suite()); $suite->addTestSuite('Zend_FilterTest'); $suite->addTest(Zend_Gdata_AllTests::suite()); $suite->addTest(Zend_Http_AllTests::suite()); $suite->addTestSuite('Zend_JsonTest'); $suite->addTestSuite('Zend_MeasureTest'); $suite->addTest(Zend_Measure_AllTests::suite()); $suite->addTestSuite('Zend_MimeTest'); $suite->addTest(Zend_Mime_AllTests::suite()); $suite->addTest(Zend_Pdf_AllTests::suite()); $suite->addTest(Zend_Registry_AllTests::suite()); $suite->addTest(Zend_Server_AllTests::suite()); $suite->addTestSuite('Zend_UriTest'); $suite->addTest(Zend_Uri_AllTests::suite()); $suite->addTestSuite('Zend_ViewTest'); $suite->addTest(Zend_XmlRpc_AllTests::suite()); return $suite; }
public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend'); $suite->addTest(Zend_Db_AllTests::suite()); /* * TimeSync tests are slow. Enable as needed. :-) */ // $suite->addTestSuite('Zend_TimeSyncTest'); return $suite; }
public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend'); $suite->addTest(Zend_Db_AllTests::suite()); $suite->addTestSuite('Zend_CurrencyTest'); $suite->addTestSuite('Zend_TimeSyncTest'); /* * Perform the tests for Zend_Json component now. */ $suite->addTest(Zend_Json_AllTests::suite()); return $suite; }
public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend'); $suite->addTest(Zend_Db_AllTests::suite()); /* * Do not include Zend_Currency because empty testbeds can cause phpunit to crash. */ // $suite->addTest(Zend_Currency_AllTests::suite()); /* * TimeSync tests are slow. Enable as needed. :-) */ // $suite->addTestSuite('Zend_TimeSyncTest'); return $suite; }
public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend'); $suite->addTestSuite('Zend_AclTest'); $suite->addTest(Zend_Auth_AllTests::suite()); $suite->addTest(Zend_Cache_AllTests::suite()); $suite->addTestSuite('Zend_ConfigTest'); $suite->addTest(Zend_Config_AllTests::suite()); $suite->addTestSuite('Zend_Console_GetoptTest'); $suite->addTest(Zend_Controller_AllTests::suite()); $suite->addTestSuite('Zend_DateTest'); $suite->addTest(Zend_Date_AllTests::suite()); $suite->addTest(Zend_Db_AllTests::suite()); $suite->addTestSuite('Zend_DebugTest'); $suite->addTest(Zend_Feed_AllTests::suite()); $suite->addTestSuite('Zend_FilterTest'); $suite->addTest(Zend_Filter_AllTests::suite()); $suite->addTest(Zend_Gdata_AllTests::suite()); $suite->addTest(Zend_Http_AllTests::suite()); $suite->addTestSuite('Zend_JsonTest'); $suite->addTestSuite('Zend_LoaderTest'); $suite->addTestSuite('Zend_LocaleTest'); $suite->addTest(Zend_Locale_AllTests::suite()); $suite->addTest(Zend_Log_AllTests::suite()); $suite->addTestSuite('Zend_MailTest'); $suite->addTest(Zend_Mail_AllTests::suite()); $suite->addTest(Zend_Measure_AllTests::suite()); $suite->addTest(Zend_Memory_AllTests::suite()); $suite->addTestSuite('Zend_MimeTest'); $suite->addTest(Zend_Mime_AllTests::suite()); $suite->addTest(Zend_Pdf_AllTests::suite()); $suite->addTestSuite('Zend_RegistryTest'); $suite->addTest(Zend_Rest_AllTests::suite()); $suite->addTest(Zend_Search_Lucene_AllTests::suite()); $suite->addTest(Zend_Server_AllTests::suite()); $suite->addTest(Zend_Service_AllTests::suite()); $suite->addTestSuite('Zend_TranslateTest'); $suite->addTest(Zend_Translate_AllTests::suite()); $suite->addTestSuite('Zend_UriTest'); $suite->addTest(Zend_Uri_AllTests::suite()); $suite->addTestSuite('Zend_ValidateTest'); $suite->addTest(Zend_Validate_AllTests::suite()); $suite->addTestSuite('Zend_ViewTest'); $suite->addTestSuite('Zend_VersionTest'); $suite->addTest(Zend_XmlRpc_AllTests::suite()); return $suite; }
public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend'); $suite->addTest(Zend_Cache_AllTests::suite()); $suite->addTest(Zend_Db_AllTests::suite()); $suite->addTestSuite('Zend_ConfigTest'); $suite->addTest(Zend_Config_AllTests::suite()); $suite->addTest(Zend_Controller_AllTests::suite()); $suite->addTest(Zend_Feed_AllTests::suite()); $suite->addTestSuite('Zend_FilterTest'); $suite->addTest(Zend_Http_AllTests::suite()); $suite->addTestSuite('Zend_JsonTest'); $suite->addTestSuite('Zend_MimeTest'); $suite->addTest(Zend_Mime_AllTests::suite()); $suite->addTest(Zend_Pdf_AllTests::suite()); $suite->addTestSuite('Zend_UriTest'); $suite->addTest(Zend_Uri_AllTests::suite()); $suite->addTestSuite('Zend_ViewTest'); return $suite; }
Zend_Loader::loadClass("ZendX_Db_Table_Row_{$driver}Test"); Zend_Loader::loadClass("ZendX_Db_Table_Relationships_{$driver}Test"); // if we get this far, there have been no exceptions loading classes // so we can add them as test suites $suite->addTestSuite("ZendX_Db_Adapter_{$driver}Test"); $suite->addTestSuite("ZendX_Db_Profiler_{$driver}Test"); $suite->addTestSuite("ZendX_Db_Statement_{$driver}Test"); $suite->addTestSuite("ZendX_Db_Select_{$driver}Test"); $suite->addTestSuite("ZendX_Db_Table_{$driver}Test"); $suite->addTestSuite("Zendx_Db_Table_Select_{$driver}Test"); $suite->addTestSuite("ZendX_Db_Table_Rowset_{$driver}Test"); $suite->addTestSuite("ZendX_Db_Table_Row_{$driver}Test"); $suite->addTestSuite("ZendX_Db_Table_Relationships_{$driver}Test"); } catch (Zend_Exception $e) { self::_skipTestSuite($driver, "cannot load test classes: " . $e->getMessage()); } } protected static function _skipTestSuite($driver, $message = '') { $skipTestClass = "ZendX_Db_Skip_{$driver}Test"; $skipTest = new $skipTestClass(); $skipTest->message = $message; if (self::$_skipTestSuite === null) { self::$_skipTestSuite = new PHPUnit_Framework_TestSuite('ZendX_Db skipped test suites'); } self::$_skipTestSuite->addTest($skipTest); } } if (PHPUnit_MAIN_METHOD == 'Zend_DbX_AllTests::main') { Zend_Db_AllTests::main(); }
/** * Regular suite * * All tests except those that require output buffering. * * @return PHPUnit_Framework_TestSuite */ public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend'); // Running this early to ensure that the test suite hasn't used too // much memory by the time it gets to this test. $suite->addTest(Zend_Memory_AllTests::suite()); // Start remaining tests... $suite->addTestSuite('Zend_Acl_AclTest'); $suite->addTest(Zend_Amf_AllTests::suite()); $suite->addTest(Zend_Application_AllTests::suite()); $suite->addTestSuite('Zend_AuthTest'); $suite->addTest(Zend_Auth_AllTests::suite()); $suite->addTest(Zend_Barcode_AllTests::suite()); $suite->addTest(Zend_Cache_AllTests::suite()); $suite->addTest(Zend_Captcha_AllTests::suite()); $suite->addTest(Zend_Cloud_AllTests::suite()); $suite->addTest(Zend_CodeGenerator_Php_AllTests::suite()); $suite->addTestSuite('Zend_ConfigTest'); $suite->addTest(Zend_Config_AllTests::suite()); $suite->addTestSuite('Zend_Console_GetoptTest'); $suite->addTest(Zend_Controller_AllTests::suite()); $suite->addTestSuite('Zend_CurrencyTest'); $suite->addTest(Zend_Crypt_AllTests::suite()); $suite->addTestSuite('Zend_DateTest'); $suite->addTest(Zend_Date_AllTests::suite()); $suite->addTest(Zend_Db_AllTests::suite()); $suite->addTestSuite('Zend_DebugTest'); $suite->addTest(Zend_Dom_AllTests::suite()); $suite->addTestSuite('Zend_ExceptionTest'); $suite->addTest(Zend_Feed_AllTests::suite()); $suite->addTest(Zend_File_AllTests::suite()); $suite->addTestSuite('Zend_FilterTest'); $suite->addTest(Zend_Filter_AllTests::suite()); $suite->addTest(Zend_Form_AllTests::suite()); $suite->addTest(Zend_Gdata_AllTests::suite()); $suite->addTest(Zend_Http_AllTests::suite()); $suite->addTest(Zend_InfoCard_AllTests::suite()); $suite->addTestSuite('Zend_JsonTest'); $suite->addTest(Zend_Json_AllTests::suite()); $suite->addTest(Zend_Layout_AllTests::suite()); $suite->addTest(Zend_Ldap_AllTests::suite()); $suite->addTestSuite('Zend_LoaderTest'); $suite->addTest(Zend_Loader_AllTests::suite()); $suite->addTestSuite('Zend_LocaleTest'); $suite->addTest(Zend_Locale_AllTests::suite()); $suite->addTest(Zend_Log_AllTests::suite()); $suite->addTest(Zend_Mail_AllTests::suite()); $suite->addTest(Zend_Markup_AllTests::suite()); $suite->addTest(Zend_Measure_AllTests::suite()); $suite->addTestSuite('Zend_MimeTest'); $suite->addTest(Zend_Mime_AllTests::suite()); $suite->addTestSuite('Zend_NavigationTest'); $suite->addTest(Zend_Navigation_AllTests::suite()); $suite->addTest(Zend_Oauth_AllTests::suite()); $suite->addTest(Zend_Paginator_AllTests::suite()); $suite->addTest(Zend_Pdf_AllTests::suite()); $suite->addTest(Zend_ProgressBar_AllTests::suite()); $suite->addTestSuite('Zend_RegistryTest'); $suite->addTest(Zend_Rest_AllTests::suite()); $suite->addTest(Zend_Reflection_AllTests::suite()); $suite->addTest(Zend_Queue_AllTests::suite()); $suite->addTest(Zend_Search_Lucene_AllTests::suite()); $suite->addTest(Zend_Serializer_AllTests::suite()); $suite->addTest(Zend_Server_AllTests::suite()); $suite->addTest(Zend_Service_AllTests::suite()); $suite->addTest(Zend_Tag_AllTests::suite()); $suite->addTest(Zend_Test_AllTests::suite()); $suite->addTest(Zend_Text_AllTests::suite()); $suite->addTest(Zend_Tool_AllTests::suite()); $suite->addTestSuite('Zend_TimeSyncTest'); $suite->addTestSuite('Zend_TranslateTest'); $suite->addTest(Zend_Translate_Adapter_AllTests::suite()); $suite->addTestSuite('Zend_UriTest'); $suite->addTest(Zend_Uri_AllTests::suite()); $suite->addTestSuite('Zend_ValidateTest'); $suite->addTest(Zend_Validate_AllTests::suite()); $suite->addTestSuite('Zend_ViewTest'); $suite->addTest(Zend_View_AllTests::suite()); $suite->addTestSuite('Zend_VersionTest'); if (PHP_OS != 'AIX') { $suite->addTest(Zend_Wildfire_AllTests::suite()); } $suite->addTest(Zend_XmlRpc_AllTests::suite()); return $suite; }
protected static function _skipTestSuite($driver, $message = '') { $skipTestClass = "Zend_Db_Skip_{$driver}Test"; $skipTest = new $skipTestClass(); $skipTest->message = $message; if (self::$_skipTestSuite === null) { self::$_skipTestSuite = new PHPUnit_Framework_TestSuite('Zend_Db skipped test suites'); } self::$_skipTestSuite->addTest($skipTest); }
public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend'); $suite->addTestSuite('Zend_AclTest'); $suite->addTest(Zend_Auth_AllTests::suite()); $suite->addTest(Zend_Cache_AllTests::suite()); $suite->addTest(Zend_Captcha_AllTests::suite()); $suite->addTestSuite('Zend_ConfigTest'); $suite->addTest(Zend_Config_AllTests::suite()); $suite->addTestSuite('Zend_Console_GetoptTest'); $suite->addTest(Zend_Controller_AllTests::suite()); $suite->addTestSuite('Zend_CurrencyTest'); $suite->addTestSuite('Zend_DateTest'); $suite->addTest(Zend_Date_AllTests::suite()); $suite->addTest(Zend_Db_AllTests::suite()); $suite->addTestSuite('Zend_DebugTest'); $suite->addTest(Zend_Dom_AllTests::suite()); $suite->addTest(Zend_Feed_AllTests::suite()); $suite->addTest(Zend_File_AllTests::suite()); $suite->addTestSuite('Zend_FilterTest'); $suite->addTest(Zend_Filter_AllTests::suite()); $suite->addTest(Zend_Form_AllTests::suite()); $suite->addTest(Zend_Gdata_AllTests::suite()); $suite->addTest(Zend_Http_AllTests::suite()); $suite->addTest(Zend_InfoCard_AllTests::suite()); $suite->addTestSuite('Zend_JsonTest'); $suite->addTestSuite('Zend_Json_JsonXMLTest'); $suite->addTest(Zend_Layout_AllTests::suite()); $suite->addTest(Zend_Ldap_AllTests::suite()); $suite->addTestSuite('Zend_LoaderTest'); $suite->addTestSuite('Zend_Loader_PluginLoaderTest'); $suite->addTestSuite('Zend_LocaleTest'); $suite->addTest(Zend_Locale_AllTests::suite()); $suite->addTest(Zend_Log_AllTests::suite()); $suite->addTestSuite('Zend_MailTest'); $suite->addTest(Zend_Mail_AllTests::suite()); $suite->addTest(Zend_Measure_AllTests::suite()); $suite->addTest(Zend_Memory_AllTests::suite()); $suite->addTestSuite('Zend_MimeTest'); $suite->addTest(Zend_Mime_AllTests::suite()); $suite->addTestSuite('Zend_OpenIdTest'); $suite->addTest(Zend_OpenId_AllTests::suite()); $suite->addTest(Zend_Paginator_AllTests::suite()); $suite->addTest(Zend_Pdf_AllTests::suite()); $suite->addTestSuite('Zend_RegistryTest'); $suite->addTest(Zend_Rest_AllTests::suite()); $suite->addTest(Zend_Search_Lucene_AllTests::suite()); $suite->addTest(Zend_Server_AllTests::suite()); $suite->addTest(Zend_Service_AllTests::suite()); $suite->addTest(Zend_Session_AllTests::suite()); $suite->addTest(Zend_Soap_AllTests::suite()); $suite->addTest(Zend_Test_AllTests::suite()); $suite->addTest(Zend_Text_AllTests::suite()); $suite->addTestSuite('Zend_TimeSyncTest'); $suite->addTestSuite('Zend_TranslateTest'); $suite->addTest(Zend_Translate_AllTests::suite()); $suite->addTestSuite('Zend_UriTest'); $suite->addTest(Zend_Uri_AllTests::suite()); $suite->addTestSuite('Zend_ValidateTest'); $suite->addTest(Zend_Validate_AllTests::suite()); $suite->addTestSuite('Zend_ViewTest'); $suite->addTestSuite('Zend_VersionTest'); $suite->addTest(Zend_Wildfire_AllTests::suite()); $suite->addTest(Zend_XmlRpc_AllTests::suite()); return $suite; }