2
0

AllTests.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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_Auth
  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(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
  23. if (!defined('PHPUnit_MAIN_METHOD')) {
  24. define('PHPUnit_MAIN_METHOD', 'Zend_Auth_Adapter_AllTests::main');
  25. }
  26. require_once 'Zend/Auth/Adapter/DbTable/AllTests.php';
  27. require_once 'Zend/Auth/Adapter/DigestTest.php';
  28. require_once 'Zend/Auth/Adapter/Http/AllTests.php';
  29. require_once 'Zend/Auth/Adapter/Ldap/AllTests.php';
  30. require_once 'Zend/Auth/Adapter/OpenId/AllTests.php';
  31. /**
  32. * @category Zend
  33. * @package Zend_Auth
  34. * @subpackage UnitTests
  35. * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  36. * @license http://framework.zend.com/license/new-bsd New BSD License
  37. * @group Zend_Auth
  38. */
  39. class Zend_Auth_Adapter_AllTests
  40. {
  41. /**
  42. * Runs this test suite
  43. *
  44. * @return void
  45. */
  46. public static function main()
  47. {
  48. PHPUnit_TextUI_TestRunner::run(self::suite());
  49. }
  50. /**
  51. * Creates and returns this test suite
  52. *
  53. * @return PHPUnit_Framework_TestSuite
  54. */
  55. public static function suite()
  56. {
  57. $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Auth_Adapter');
  58. $suite->addTest(Zend_Auth_Adapter_DbTable_AllTests::suite());
  59. $suite->addTestSuite('Zend_Auth_Adapter_DigestTest');
  60. $suite->addTest(Zend_Auth_Adapter_Http_AllTests::suite());
  61. $suite->addTest(Zend_Auth_Adapter_Ldap_AllTests::suite());
  62. $suite->addTest(Zend_Auth_Adapter_OpenId_AllTests::suite());
  63. return $suite;
  64. }
  65. }
  66. if (PHPUnit_MAIN_METHOD == 'Zend_Auth_Adapter_AllTests::main') {
  67. Zend_Auth_Adapter_AllTests::main();
  68. }