PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/Zend/Log/Writer/AllTests.php

https://bitbucket.org/ksekar/campus
PHP | 77 lines | 41 code | 7 blank | 29 comment | 7 complexity | ac75fc14d9a0f92594ad523d097c2722 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.0, MIT
  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-2012 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id: AllTests.php 24594 2012-01-05 21:27:01Z matthew $
  21. */
  22. if (!defined('PHPUnit_MAIN_METHOD')) {
  23. define('PHPUnit_MAIN_METHOD', 'Zend_Log_Writer_AllTests::main');
  24. }
  25. require_once 'Zend/Log/Writer/AbstractTest.php';
  26. require_once 'Zend/Log/Writer/DbTest.php';
  27. if (PHP_OS != 'AIX') {
  28. require_once 'Zend/Log/Writer/FirebugTest.php';
  29. }
  30. require_once 'Zend/Log/Writer/MailTest.php';
  31. require_once 'Zend/Log/Writer/MockTest.php';
  32. require_once 'Zend/Log/Writer/NullTest.php';
  33. require_once 'Zend/Log/Writer/StreamTest.php';
  34. require_once 'Zend/Log/Writer/SyslogTest.php';
  35. require_once 'Zend/Log/Writer/ZendMonitorTest.php';
  36. /**
  37. * @category Zend
  38. * @package Zend_Log
  39. * @subpackage UnitTests
  40. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  41. * @license http://framework.zend.com/license/new-bsd New BSD License
  42. * @group Zend_Log
  43. * @group Zend_Log_Writer
  44. */
  45. class Zend_Log_Writer_AllTests
  46. {
  47. public static function main()
  48. {
  49. PHPUnit_TextUI_TestRunner::run(self::suite());
  50. }
  51. public static function suite()
  52. {
  53. $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Log_Writer');
  54. $suite->addTestSuite('Zend_Log_Writer_AbstractTest');
  55. $suite->addTestSuite('Zend_Log_Writer_DbTest');
  56. if (PHP_OS != 'AIX') {
  57. $suite->addTestSuite('Zend_Log_Writer_FirebugTest');
  58. }
  59. $suite->addTestSuite('Zend_Log_Writer_MailTest');
  60. $suite->addTestSuite('Zend_Log_Writer_MockTest');
  61. $suite->addTestSuite('Zend_Log_Writer_NullTest');
  62. $suite->addTestSuite('Zend_Log_Writer_StreamTest');
  63. $suite->addTestSuite('Zend_Log_Writer_SyslogTest');
  64. $suite->addTestSuite('Zend_Log_Writer_ZendMonitorTest');
  65. return $suite;
  66. }
  67. }
  68. if (PHPUnit_MAIN_METHOD == 'Zend_Log_Writer_AllTests::main') {
  69. Zend_Log_Writer_AllTests::main();
  70. }