AllTests.php 928 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. if (!defined('PHPUnit_MAIN_METHOD')) {
  3. define('PHPUnit_MAIN_METHOD', 'Zend_Crypt_Math_AllTests::main');
  4. }
  5. require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
  6. require_once 'PHPUnit/Framework/TestSuite.php';
  7. require_once 'PHPUnit/TextUI/TestRunner.php';
  8. require_once 'BigInteger/BcmathTest.php';
  9. require_once 'BigInteger/GmpTest.php';
  10. class Zend_Crypt_Math_AllTests
  11. {
  12. public static function main()
  13. {
  14. PHPUnit_TextUI_TestRunner::run(self::suite());
  15. }
  16. public static function suite()
  17. {
  18. $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Math');
  19. $suite->addTestSuite('Zend_Crypt_Math_BigInteger_BcmathTest');
  20. $suite->addTestSuite('Zend_Crypt_Math_BigInteger_GmpTest');
  21. return $suite;
  22. }
  23. }
  24. if (PHPUnit_MAIN_METHOD == 'Zend_Crypt_Math_AllTests::main') {
  25. Zend_Crypt_Math_AllTests::main();
  26. }