AllTests.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Log
  17. * @subpackage UnitTests
  18. * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. require_once dirname(__FILE__) . '/../../../TestHelper.php';
  23. if (!defined('PHPUnit_MAIN_METHOD')) {
  24. define('PHPUnit_MAIN_METHOD', 'Zend_Log_Writer_AllTests::main');
  25. }
  26. require_once 'Zend/Log/Writer/AbstractTest.php';
  27. require_once 'Zend/Log/Writer/DbTest.php';
  28. if (PHP_OS != 'AIX') {
  29. require_once 'Zend/Log/Writer/FirebugTest.php';
  30. }
  31. require_once 'Zend/Log/Writer/MailTest.php';
  32. require_once 'Zend/Log/Writer/MockTest.php';
  33. require_once 'Zend/Log/Writer/NullTest.php';
  34. require_once 'Zend/Log/Writer/StreamTest.php';
  35. require_once 'Zend/Log/Writer/SyslogTest.php';
  36. require_once 'Zend/Log/Writer/ZendMonitorTest.php';
  37. /**
  38. * @category Zend
  39. * @package Zend_Log
  40. * @subpackage UnitTests
  41. * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  42. * @license http://framework.zend.com/license/new-bsd New BSD License
  43. * @group Zend_Log
  44. * @group Zend_Log_Writer
  45. */
  46. class Zend_Log_Writer_AllTests
  47. {
  48. public static function main()
  49. {
  50. PHPUnit_TextUI_TestRunner::run(self::suite());
  51. }
  52. public static function suite()
  53. {
  54. $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Log_Writer');
  55. $suite->addTestSuite('Zend_Log_Writer_AbstractTest');
  56. $suite->addTestSuite('Zend_Log_Writer_DbTest');
  57. if (PHP_OS != 'AIX') {
  58. $suite->addTestSuite('Zend_Log_Writer_FirebugTest');
  59. }
  60. $suite->addTestSuite('Zend_Log_Writer_MailTest');
  61. $suite->addTestSuite('Zend_Log_Writer_MockTest');
  62. $suite->addTestSuite('Zend_Log_Writer_NullTest');
  63. $suite->addTestSuite('Zend_Log_Writer_StreamTest');
  64. $suite->addTestSuite('Zend_Log_Writer_SyslogTest');
  65. $suite->addTestSuite('Zend_Log_Writer_ZendMonitorTest');
  66. return $suite;
  67. }
  68. }
  69. if (PHPUnit_MAIN_METHOD == 'Zend_Log_Writer_AllTests::main') {
  70. Zend_Log_Writer_AllTests::main();
  71. }