TestConfiguration.travis.php 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 UnitTests
  17. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id$
  20. */
  21. /**
  22. * This file defines configuration for running the unit tests for the Zend
  23. * Framework. Some tests have dependencies to PHP extensions or databases
  24. * which may not necessary installed on the target system. For these cases,
  25. * the ability to disable or configure testing is provided below. Tests for
  26. * components which should run universally are always run by the master
  27. * suite and cannot be disabled.
  28. *
  29. * Do not edit this file. Instead, copy this file to TestConfiguration.php,
  30. * and edit the new file. Never commit plaintext passwords to the source
  31. * code repository.
  32. */
  33. /**
  34. * Zend_Auth_Adapter_DbTable tests
  35. */
  36. defined('TESTS_ZEND_AUTH_ADAPTER_DBTABLE_PDO_SQLITE_ENABLED') || define('TESTS_ZEND_AUTH_ADAPTER_DBTABLE_PDO_SQLITE_ENABLED', true);
  37. /**
  38. * Zend_Cache
  39. *
  40. * TESTS_ZEND_CACHE_SQLITE_ENABLED => sqlite extension has to be enabled
  41. * TESTS_ZEND_CACHE_APC_ENABLED => apc extension has to be enabled
  42. * TESTS_ZEND_CACHE_WINCACHE_ENABLED => wincache extension has to be enabled
  43. * TESTS_ZEND_CACHE_MEMCACHED_ENABLED => memcache extension has to be enabled and
  44. * a memcached server has to be available
  45. * TESTS_ZEND_CACHE_LIBMEMCACHED_ENABLED => memcached extension has to be enabled and
  46. * a memcached server has to be available
  47. * TESTS_ZEND_CACHE_XCACHE_ENABLED => xcache extension has to be enabled
  48. */
  49. defined('TESTS_ZEND_CACHE_SQLITE_ENABLED') || define('TESTS_ZEND_CACHE_SQLITE_ENABLED', true);
  50. defined('TESTS_ZEND_CACHE_MEMCACHED_ENABLED') || define('TESTS_ZEND_CACHE_MEMCACHED_ENABLED', true);
  51. defined('TESTS_ZEND_CACHE_LIBMEMCACHED_ENABLED') || define('TESTS_ZEND_CACHE_LIBMEMCACHED_ENABLED', true);
  52. /**
  53. * Zend_Db_Adapter_Pdo_Mysql and Zend_Db_Adapter_Mysqli
  54. *
  55. * There are separate properties to enable tests for the PDO_MYSQL adapter and
  56. * the native Mysqli adapters, but the other properties are shared between the
  57. * two MySQL-related Zend_Db adapters.
  58. */
  59. defined('TESTS_ZEND_DB_ADAPTER_PDO_MYSQL_ENABLED') || define('TESTS_ZEND_DB_ADAPTER_PDO_MYSQL_ENABLED', true);
  60. defined('TESTS_ZEND_DB_ADAPTER_MYSQLI_ENABLED') || define('TESTS_ZEND_DB_ADAPTER_MYSQLI_ENABLED', true);
  61. defined('TESTS_ZEND_DB_ADAPTER_MYSQL_USERNAME') || define('TESTS_ZEND_DB_ADAPTER_MYSQL_USERNAME', 'travis');
  62. defined('TESTS_ZEND_DB_ADAPTER_MYSQL_PASSWORD') || define('TESTS_ZEND_DB_ADAPTER_MYSQL_PASSWORD', '');
  63. defined('TESTS_ZEND_DB_ADAPTER_MYSQL_DATABASE') || define('TESTS_ZEND_DB_ADAPTER_MYSQL_DATABASE', 'zftest');
  64. /**
  65. * Zend_Db_Adapter_Pdo_Sqlite
  66. *
  67. * Username and password are irrelevant for SQLite.
  68. */
  69. defined('TESTS_ZEND_DB_ADAPTER_PDO_SQLITE_ENABLED') || define('TESTS_ZEND_DB_ADAPTER_PDO_SQLITE_ENABLED', true);
  70. /**
  71. * Zend_Db_Adapter_Pdo_Pgsql
  72. */
  73. defined('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_ENABLED') || define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_ENABLED', true);
  74. defined('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_USERNAME') || define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_USERNAME', 'postgres');
  75. defined('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_PASSWORD') || define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_PASSWORD', '');
  76. defined('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_DATABASE') || define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_DATABASE', 'zftest');
  77. require_once dirname(__FILE__) . '/TestConfiguration.php.dist';