TestConfiguration.php.dist 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  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-2010 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. * GENERAL SETTINGS
  35. *
  36. * OB_ENABLED should be enabled for some tests to check if all functionality
  37. * works as expected. Such tests include those for Zend_Soap and Zend_Session,
  38. * which require that headers not be sent in order to work.
  39. */
  40. define('TESTS_ZEND_OB_ENABLED', false);
  41. /**
  42. * Zend_Auth_Adapter_DbTable tests
  43. */
  44. define('TESTS_ZEND_AUTH_ADAPTER_DBTABLE_PDO_SQLITE_ENABLED', false);
  45. define('TESTS_ZEND_AUTH_ADAPTER_DBTABLE_PDO_SQLITE_DATABASE', ':memory:');
  46. /**
  47. * Zend_Auth_Adapter_Ldap online tests
  48. * (See also TESTS_ZEND_LDAP_* configuration constants below)
  49. */
  50. define('TESTS_ZEND_AUTH_ADAPTER_LDAP_ONLINE_ENABLED', false);
  51. /**
  52. * Zend_Cache
  53. *
  54. * TESTS_ZEND_CACHE_SQLITE_ENABLED => sqlite extension has to be enabled
  55. * TESTS_ZEND_CACHE_APC_ENABLED => apc extension has to be enabled
  56. * TESTS_ZEND_CACHE_MEMCACHED_ENABLED => memcache extension has to be enabled and
  57. * a memcached server has to be available
  58. * TESTS_ZEND_CACHE_XCACHE_ENABLED => xcache extension has to be enabled
  59. */
  60. define('TESTS_ZEND_CACHE_SQLITE_ENABLED', false);
  61. define('TESTS_ZEND_CACHE_APC_ENABLED', false);
  62. define('TESTS_ZEND_CACHE_XCACHE_ENABLED', true);
  63. define('TESTS_ZEND_CACHE_XCACHE_USER', null);
  64. define('TESTS_ZEND_CACHE_XCACHE_PASSWORD', null);
  65. define('TESTS_ZEND_CACHE_PLATFORM_ENABLED', false);
  66. define('TESTS_ZEND_CACHE_MEMCACHED_ENABLED', false);
  67. define('TESTS_ZEND_CACHE_MEMCACHED_HOST', '127.0.0.1');
  68. define('TESTS_ZEND_CACHE_MEMCACHED_PORT', 11211);
  69. define('TESTS_ZEND_CACHE_MEMCACHED_PERSISTENT', true);
  70. /**
  71. * Zend_Cloud online tests
  72. *
  73. * You may need to provide connection details for specific adapters under their
  74. * specific configuration settings elsewhere in this file.
  75. */
  76. define('TESTS_ZEND_CLOUD_STORAGE_NIRVANIX_DIRECTORY', 'simplecloud');
  77. define('TESTS_ZEND_CLOUD_STORAGE_WINDOWSAZURE_CONTAINER', 'simplecloudcontainer');
  78. /**
  79. * Zend_Controller
  80. *
  81. * TESTS_ZEND_CONTROLLER_DISPATCHER_OB => test disabling output buffering in
  82. * dispatcher
  83. */
  84. define('TESTS_ZEND_CONTROLLER_DISPATCHER_OB', false);
  85. /**
  86. * Zend_Db_Adapter_Pdo_Mysql and Zend_Db_Adapter_Mysqli
  87. *
  88. * There are separate properties to enable tests for the PDO_MYSQL adapter and
  89. * the native Mysqli adapters, but the other properties are shared between the
  90. * two MySQL-related Zend_Db adapters.
  91. */
  92. define('TESTS_ZEND_DB_ADAPTER_PDO_MYSQL_ENABLED', false);
  93. define('TESTS_ZEND_DB_ADAPTER_MYSQLI_ENABLED', false);
  94. define('TESTS_ZEND_DB_ADAPTER_MYSQL_HOSTNAME', '127.0.0.1');
  95. define('TESTS_ZEND_DB_ADAPTER_MYSQL_USERNAME', null);
  96. define('TESTS_ZEND_DB_ADAPTER_MYSQL_PASSWORD', null);
  97. define('TESTS_ZEND_DB_ADAPTER_MYSQL_DATABASE', 'test');
  98. define('TESTS_ZEND_DB_ADAPTER_MYSQL_PORT', 3306);
  99. /**
  100. * Zend_Db_Adapter_Pdo_Sqlite
  101. *
  102. * Username and password are irrelevant for SQLite.
  103. */
  104. define('TESTS_ZEND_DB_ADAPTER_PDO_SQLITE_ENABLED', false);
  105. define('TESTS_ZEND_DB_ADAPTER_PDO_SQLITE_DATABASE', ':memory:');
  106. /**
  107. * Zend_Db_Adapter_Pdo_Mssql
  108. *
  109. * Note that you need to patch your ntwdblib.dll, the one that
  110. * comes with PHP does not work. See user comments at
  111. * http://us2.php.net/manual/en/ref.mssql.php
  112. */
  113. define('TESTS_ZEND_DB_ADAPTER_PDO_MSSQL_ENABLED', false);
  114. define('TESTS_ZEND_DB_ADAPTER_PDO_MSSQL_HOSTNAME', '127.0.0.1');
  115. define('TESTS_ZEND_DB_ADAPTER_PDO_MSSQL_USERNAME', null);
  116. define('TESTS_ZEND_DB_ADAPTER_PDO_MSSQL_PASSWORD', null);
  117. define('TESTS_ZEND_DB_ADAPTER_PDO_MSSQL_DATABASE', 'test');
  118. /**
  119. * Zend_Db_Adapter_Pdo_Pgsql
  120. */
  121. define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_ENABLED', false);
  122. define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_HOSTNAME', '127.0.0.1');
  123. define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_USERNAME', null);
  124. define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_PASSWORD', null);
  125. define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_DATABASE', 'postgres');
  126. /**
  127. * Zend_Db_Adapter_Oracle and Zend_Db_Adapter_Pdo_Oci
  128. *
  129. * There are separate properties to enable tests for the PDO_OCI adapter and
  130. * the native Oracle adapter, but the other properties are shared between the
  131. * two Oracle-related Zend_Db adapters.
  132. */
  133. define('TESTS_ZEND_DB_ADAPTER_PDO_OCI_ENABLED', false);
  134. define('TESTS_ZEND_DB_ADAPTER_ORACLE_ENABLED', false);
  135. define('TESTS_ZEND_DB_ADAPTER_ORACLE_HOSTNAME', '127.0.0.1');
  136. define('TESTS_ZEND_DB_ADAPTER_ORACLE_USERNAME', null);
  137. define('TESTS_ZEND_DB_ADAPTER_ORACLE_PASSWORD', null);
  138. define('TESTS_ZEND_DB_ADAPTER_ORACLE_SID', 'xe');
  139. /**
  140. * Zend_Db_Adapter_Db2 and Zend_Db_Adapter_Pdo_Ibm
  141. * There are separate properties to enable tests for the PDO_IBM adapter and
  142. * the native DB2 adapter, but the other properties are shared between the
  143. * two related Zend_Db adapters.
  144. */
  145. define('TESTS_ZEND_DB_ADAPTER_PDO_IBM_ENABLED', false);
  146. define('TESTS_ZEND_DB_ADAPTER_DB2_ENABLED', false);
  147. define('TESTS_ZEND_DB_ADAPTER_DB2_HOSTNAME', '127.0.0.1');
  148. define('TESTS_ZEND_DB_ADAPTER_DB2_PORT', 50000);
  149. define('TESTS_ZEND_DB_ADAPTER_DB2_USERNAME', null);
  150. define('TESTS_ZEND_DB_ADAPTER_DB2_PASSWORD', null);
  151. define('TESTS_ZEND_DB_ADAPTER_DB2_DATABASE', 'sample');
  152. /**
  153. * Zend_Db_Adapter_Sqlsrv
  154. * Note: Make sure that you create the "test" database and set a
  155. * username and password
  156. *
  157. */
  158. define('TESTS_ZEND_DB_ADAPTER_SQLSRV_ENABLED', false);
  159. define('TESTS_ZEND_DB_ADAPTER_SQLSRV_HOSTNAME', 'localhost\SQLEXPRESS');
  160. define('TESTS_ZEND_DB_ADAPTER_SQLSRV_USERNAME', null);
  161. define('TESTS_ZEND_DB_ADAPTER_SQLSRV_PASSWORD', null);
  162. define('TESTS_ZEND_DB_ADAPTER_SQLSRV_DATABASE', 'test');
  163. /**
  164. * Zend_Feed_Reader tests
  165. *
  166. * If the ONLINE_ENABLED property is false, only tests that can be executed
  167. * without network connectivity are run; when enabled, all tests will run.
  168. */
  169. define('TESTS_ZEND_FEED_READER_ONLINE_ENABLED', false);
  170. /**
  171. * Zend_Gdata tests
  172. *
  173. * If the ONLINE_ENABLED property is false, only tests that can be executed with
  174. * a mock HTTP client are run. No request is sent to the Google Gdata servers.
  175. * If ONLINE_ENABLED is true, some tests may make requests to the remote
  176. * servers. This does not work if you are running tests on a disconnected
  177. * client host. Also, the tests may show as failures if the Google servers
  178. * cannot be reached or if they do not respond for another reason.
  179. *
  180. * If the CLIENTLOGIN_ENABLED property below is false, the authenticated
  181. * tests are reported Skipped in the test run. Set this property to true
  182. * to enable tests that require ClientLogin authentication. Enter your
  183. * Google login credentials in the EMAIL and PASSWORD properties below.
  184. *
  185. * Edit TestConfiguration.php, not TestConfiguration.php.dist.
  186. * Never commit plaintext passwords to the source code repository.
  187. *
  188. * Note: the GData tests currently require that the TZID env variable
  189. * be set or the timezone otherwise configured. You'll see errors from the
  190. * tests if this is not the case.
  191. */
  192. define('TESTS_ZEND_GDATA_ONLINE_ENABLED', false);
  193. define('TESTS_ZEND_GDATA_CLIENTLOGIN_ENABLED', false);
  194. /*
  195. * The credentials provided here should be only for a TEST account.
  196. * Data for various services in this account may be added to, updated,
  197. * or deleted based upon the actions of these test accounts.
  198. */
  199. define('TESTS_ZEND_GDATA_CLIENTLOGIN_EMAIL', 'example@example.com');
  200. define('TESTS_ZEND_GDATA_CLIENTLOGIN_PASSWORD', 'password');
  201. /*
  202. * This is the ID of a blank blog. There is no need to have
  203. * any content in this blog. Also, blogs can only be used
  204. * several times for the purpose of these test cases before
  205. * they must be deleted and recreated. Otherwise, the tests
  206. * will start failing, as posts to Blogger will return a 201 Created
  207. * response even though the entry was not posted to the blog.
  208. * This problem is being investigated.
  209. */
  210. define('TESTS_ZEND_GDATA_BLOGGER_ONLINE_ENABLED', false);
  211. define('TESTS_ZEND_GDATA_BLOG_ID', '1111111111111111111');
  212. /*
  213. * This is the key for a spreadsheet with data only in the first row of
  214. * the spreadsheet. The strings 'a1', 'b1', 'c1', 'd1' should be in the
  215. * corresponding cell locations.
  216. */
  217. define('TESTS_ZEND_GDATA_SPREADSHEETS_ONLINE_ENABLED', false);
  218. define('TESTS_ZEND_GDATA_SPREADSHEETS_SPREADSHEETKEY', 'o01111111111111111111.1111111111111111111');
  219. define('TESTS_ZEND_GDATA_SPREADSHEETS_WORKSHEETID', 'default');
  220. /*
  221. * This indicates that online tests for the Google Calendar API should
  222. * be performed. The default calendar will be used.
  223. */
  224. define('TESTS_ZEND_GDATA_CALENDAR_ONLINE_ENABLED', false);
  225. /*
  226. * This is the fully-qualified domain name for a domiain hosted using
  227. * Google Apps. This domain must be registered with Google Apps and
  228. * have API access enabled. This should be a TEST domain only.
  229. */
  230. define('TESTS_ZEND_GDATA_GAPPS_ONLINE_ENABLED', false);
  231. define('TESTS_ZEND_GDATA_GAPPS_DOMAIN', 'example.com.invalid');
  232. define('TESTS_ZEND_GDATA_GAPPS_EMAIL', 'example@example.com');
  233. define('TESTS_ZEND_GDATA_GAPPS_PASSWORD', 'password');
  234. /*
  235. * This is the ONLINE_ENABLED property for Google Base.
  236. */
  237. define('TESTS_ZEND_GDATA_GBASE_ONLINE_ENABLED', false);
  238. /*
  239. * This indicates that online tests for the Books Search data API
  240. * should be performed.
  241. */
  242. define('TESTS_ZEND_GDATA_BOOKS_ONLINE_ENABLED', false);
  243. /*
  244. * This indicates that online tests for the YouTube data API should
  245. * be performed.
  246. */
  247. define('TESTS_ZEND_GDATA_YOUTUBE_ONLINE_ENABLED', false);
  248. /*
  249. * This is the username to use for retrieving subscriptions, etc
  250. */
  251. define('TESTS_ZEND_GDATA_YOUTUBE_ACCOUNT', 'zfgdata');
  252. /*
  253. * This is the developer key to access the YouTube API
  254. */
  255. define('TESTS_ZEND_GDATA_YOUTUBE_DEVELOPER_KEY', 'your_developer_key_here');
  256. /*
  257. * This is the client ID to access the YouTube API
  258. */
  259. define('TESTS_ZEND_GDATA_YOUTUBE_CLIENT_ID', 'ZF_UnitTests_unknown');
  260. /*
  261. * This indicates that online tests for the Google Documents API should
  262. * be performed.
  263. */
  264. define('TESTS_ZEND_GDATA_DOCS_ONLINE_ENABLED', false);
  265. /*
  266. * This indicates that online tests for the GData Photos API should
  267. * be performed.
  268. */
  269. define('TESTS_ZEND_GDATA_PHOTOS_ONLINE_ENABLED', false);
  270. /*
  271. * This indicates that online tests for the Google Health API should
  272. * be performed.
  273. */
  274. define('TESTS_ZEND_GDATA_HEALTH_ONLINE_ENABLED', false);
  275. /**
  276. * Zend_Http_Client tests
  277. *
  278. * To enable the dynamic Zend_Http_Client tests, you will need to symbolically
  279. * link or copy the files in tests/Zend/Http/Client/_files to a directory
  280. * under your web server(s) document root and set this constant to point to the
  281. * URL of this directory.
  282. */
  283. define('TESTS_ZEND_HTTP_CLIENT_BASEURI', false);
  284. /**
  285. * Zend_Http_Client_Proxy tests
  286. *
  287. * HTTP proxy to be used for testing the Proxy adapter. Set to a string of
  288. * the form 'host:port'. Set to null to skip HTTP proxy tests.
  289. */
  290. define('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY', false);
  291. define('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY_USER', '');
  292. define('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY_PASS', '');
  293. /**
  294. * Zend_Loader_Autoloader multi-version support tests
  295. *
  296. * ENABLED: whether or not to run the multi-version tests
  297. * PATH: path to a directory containing multiple ZF version installs
  298. * LATEST: most recent ZF version in the PATH
  299. * e.g., "1.9.2"
  300. * LATEST_MAJOR: most recent ZF major version in the PATH to test against
  301. * e.g., "1.9.2"
  302. * LATEST_MINOR: most recent ZF minor version in the PATH to test against
  303. * e.g., "1.8.4PL1"
  304. * SPECIFIC: specific ZF version in the PATH to test against
  305. * e.g., "1.7.6"
  306. * As an example, consider the following tree:
  307. * ZendFramework/
  308. * |-- 1.9.2
  309. * |-- ZendFramework-1.9.1-minimal
  310. * |-- 1.8.4PL1
  311. * |-- 1.8.4
  312. * |-- ZendFramework-1.8.3
  313. * |-- 1.7.8
  314. * |-- 1.7.7
  315. * |-- 1.7.6
  316. * You would then set the value of "LATEST" and "LATEST_MAJOR" to "1.9.2", and
  317. * could choose between "1.9.2", "1.8.4PL1", and "1.7.8" for "LATEST_MINOR",
  318. * and any version number for "SPECIFIC". "PATH" would point to the parent
  319. * "ZendFramework" directory.
  320. */
  321. define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_ENABLED', false);
  322. define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_PATH', false);
  323. define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_LATEST', false);
  324. define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_LATEST_MAJOR', false);
  325. define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_LATEST_MINOR', false);
  326. define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_SPECIFIC', false);
  327. /**
  328. * Zend_Ldap online tests
  329. */
  330. define('TESTS_ZEND_LDAP_ONLINE_ENABLED', false);
  331. /* These largely map to the options described in the Zend_Ldap and
  332. * Zend_Auth_Adapter_Ldap documentation.
  333. *
  334. * Example Configuration for Active Directory:
  335. * HOST: dc1.w.net
  336. * USE_START_TLS: true
  337. * USE_SSL: false
  338. * USERNAME: CN=User 1,CN=Users,DC=w,DC=net
  339. * PRINCIPAL_NAME: user1@w.net
  340. * LDAP_PASSWORD: pass1
  341. * BASE_DN: CN=Users,DC=w,DC=net
  342. * DOMAIN_NAME: w.net
  343. * ACCOUNT_DOMAIN_NAME_SHORT: W
  344. * ALT_USERNAME: user2
  345. * ALT_DN: CN=User 2,CN=Users,DC=w,DC=net
  346. * ALT_PASSWORD: pass2
  347. *
  348. * Example Configuration for OpenLDAP
  349. * HOST: s0.foo.net
  350. * USERNAME: CN=user1,DC=foo,DC=net
  351. * PRINCIPAL_NAME: user1@foo.net
  352. * LDAP_PASSWORD: pass1
  353. * BIND_REQUIRES_DN: true
  354. * BASE_DN: OU=Sales,DC=w,DC=net
  355. * DOMAIN_NAME: foo.net
  356. * ACCOUNT_DOMAIN_NAME_SHORT: FOO
  357. * ALT_USERNAME: abaker
  358. * ALT_DN: CN=Alice Baker,OU=Sales,DC=foo,DC=net
  359. * ALT_PASSWORD: apass
  360. */
  361. define('TESTS_ZEND_LDAP_HOST', 'localhost');
  362. //define('TESTS_ZEND_LDAP_PORT', 389);
  363. define('TESTS_ZEND_LDAP_USE_START_TLS', true);
  364. //define('TESTS_ZEND_LDAP_USE_SSL', false);
  365. define('TESTS_ZEND_LDAP_USERNAME', 'CN=someUser,DC=example,DC=com');
  366. define('TESTS_ZEND_LDAP_PRINCIPAL_NAME', 'someUser@example.com');
  367. define('TESTS_ZEND_LDAP_PASSWORD', null);
  368. define('TESTS_ZEND_LDAP_BIND_REQUIRES_DN', true);
  369. define('TESTS_ZEND_LDAP_BASE_DN', 'OU=Sales,DC=example,DC=com');
  370. //define('TESTS_ZEND_LDAP_ACCOUNT_FILTER_FORMAT', '(&(objectClass=posixAccount)(uid=%s))');
  371. define('TESTS_ZEND_LDAP_ACCOUNT_DOMAIN_NAME', 'example.com');
  372. define('TESTS_ZEND_LDAP_ACCOUNT_DOMAIN_NAME_SHORT', 'EXAMPLE');
  373. define('TESTS_ZEND_LDAP_ALT_USERNAME', 'anotherUser');
  374. define('TESTS_ZEND_LDAP_ALT_DN', 'CN=Another User,OU=Sales,DC=example,DC=com');
  375. define('TESTS_ZEND_LDAP_ALT_PASSWORD', null);
  376. /**
  377. * Zend_Locale tests
  378. *
  379. * If the TESTS_ZEND_LOCALE_FORMAT_SETLOCALE property below is a valid,
  380. * locally recognized locale (try "locale -a"), then all tests in
  381. * tests/Zend/Locale/ test suites will execute *after*
  382. * setlocale(LC_ALL, TESTS_ZEND_LOCALE_FORMAT_SETLOCALE);
  383. * Primarily, this switches certain PHP functions to emit "localized" output,
  384. * including the built-in "to string" for integer and float conversions.
  385. * Thus, a locale of 'fr_FR' yields number-to-string conversions in a
  386. * localized form with the decimal place separator chosen via:
  387. * setlocale(LC_ALL, 'fr_FR@euro');
  388. */
  389. //define('TESTS_ZEND_LOCALE_FORMAT_SETLOCALE', 'fr');
  390. //define('TESTS_ZEND_LOCALE_FORMAT_SETLOCALE', 'fr_FR@euro');
  391. define('TESTS_ZEND_LOCALE_FORMAT_SETLOCALE', false);
  392. /**
  393. * Zend_Date tests
  394. *
  395. * If the BCMATH_ENABLED property below is false, all arithmetic
  396. * operations will use ordinary PHP math operators and functions.
  397. * Otherwise, the bcmath functions will be used for unlimited precision.
  398. *
  399. * If the EXTENDED_COVERAGE property below is false, most of the I18N
  400. * unit tests will not be computed... this speeds tests up to 80 minutes
  401. * when doing reports. *
  402. * Edit TestConfiguration.php, not TestConfiguration.php.dist.
  403. */
  404. define('TESTS_ZEND_LOCALE_BCMATH_ENABLED', true);
  405. define('TESTS_ZEND_I18N_EXTENDED_COVERAGE', true);
  406. /**
  407. * Zend_Mail_Storage tests
  408. *
  409. * TESTS_ZEND_MAIL_SERVER_TESTDIR and TESTS_ZEND_MAIL_SERVER_FORMAT are used for POP3 and IMAP tests.
  410. * TESTS_ZEND_MAIL_SERVER_FORMAT is the format your test mail server uses: 'mbox' or 'maildir'. The mail
  411. * storage for the user specified in your POP3 or IMAP tests should be TESTS_ZEND_MAIL_SERVER_TESTDIR. Be
  412. * careful: it's cleared before copying the files. If you want to copy the files manually set the dir
  413. * to null (or anything == null).
  414. *
  415. * TESTS_ZEND_MAIL_TEMPDIR is used for testing write operations in local storages. If not set (== null)
  416. * tempnam() is used.
  417. */
  418. define('TESTS_ZEND_MAIL_SERVER_TESTDIR', null);
  419. define('TESTS_ZEND_MAIL_SERVER_FORMAT', 'mbox');
  420. define('TESTS_ZEND_MAIL_TEMPDIR', null);
  421. /**
  422. * Zend_Mail_Storage_Pop3 / Zend_Mail_Transport_Pop3
  423. *
  424. * IMPORTANT: you need to copy tests/Zend/Mail/_files/test.mbox to your mail
  425. * if you haven't set TESTS_ZEND_MAIL_SERVER_TESTDIR
  426. */
  427. define('TESTS_ZEND_MAIL_POP3_ENABLED', false);
  428. define('TESTS_ZEND_MAIL_POP3_HOST', 'localhost');
  429. define('TESTS_ZEND_MAIL_POP3_USER', 'test');
  430. define('TESTS_ZEND_MAIL_POP3_PASSWORD', '');
  431. // test SSL connections if enabled in your test server
  432. define('TESTS_ZEND_MAIL_POP3_SSL', true);
  433. define('TESTS_ZEND_MAIL_POP3_TLS', true);
  434. // WRONG_PORT should be an existing server port,
  435. // INVALID_PORT should be a non existing (each on defined host)
  436. define('TESTS_ZEND_MAIL_POP3_WRONG_PORT', 80);
  437. define('TESTS_ZEND_MAIL_POP3_INVALID_PORT', 3141);
  438. /**
  439. * Zend_Mail_Storage_Imap / Zend_Mail_Transport_Imap
  440. *
  441. * IMPORTANT: you need to copy tests/Zend/Mail/_files/test.mbox to your mail
  442. * if you haven't set TESTS_ZEND_MAIL_SERVER_TESTDIR
  443. */
  444. define('TESTS_ZEND_MAIL_IMAP_ENABLED', false);
  445. define('TESTS_ZEND_MAIL_IMAP_HOST', 'localhost');
  446. define('TESTS_ZEND_MAIL_IMAP_USER', 'test');
  447. define('TESTS_ZEND_MAIL_IMAP_PASSWORD', '');
  448. // test SSL connections if enabled in your test server
  449. define('TESTS_ZEND_MAIL_IMAP_SSL', true);
  450. define('TESTS_ZEND_MAIL_IMAP_TLS', true);
  451. // WRONG_PORT should be an existing server port,
  452. // INVALID_PORT should be a non-existing (each on defined host)
  453. define('TESTS_ZEND_MAIL_IMAP_WRONG_PORT', 80);
  454. define('TESTS_ZEND_MAIL_IMAP_INVALID_PORT', 3141);
  455. /**
  456. * Zend_Mail_Storage_Maildir test
  457. *
  458. * Before enabling this test you have to unpack messages.tar in
  459. * Zend/Mail/_files/test.maildir/cur/ and remove the tar for this test to work.
  460. * That's because the messages files have a colon in the filename and that's a
  461. * forbidden character on Windows.
  462. */
  463. define('TESTS_ZEND_MAIL_MAILDIR_ENABLED', false);
  464. /**
  465. * Zend_Mail_Transport_Smtp
  466. *
  467. * @todo TO be implemented
  468. */
  469. define('TESTS_ZEND_MAIL_SMTP_ENABLED', false);
  470. define('TESTS_ZEND_MAIL_SMTP_HOST', 'localhost');
  471. define('TESTS_ZEND_MAIL_SMTP_PORT', 25);
  472. define('TESTS_ZEND_MAIL_SMTP_USER', 'testuser');
  473. define('TESTS_ZEND_MAIL_SMTP_PASSWORD', 'testpassword');
  474. define('TESTS_ZEND_MAIL_SMTP_AUTH', false);
  475. // AUTH can be set to false or a string of AUTH method (e.g. LOGIN, PLAIN, CRAMMD5 or DIGESTMD5)
  476. /**
  477. * Zend_Queue Test Configuration constants
  478. *
  479. * The Zend_Queue_Adapter_Db constant should be a JSON-encoded string
  480. * representing a configuration object for Zend_Db::factory(). For example:
  481. * {
  482. * type: "pdo_mysql",
  483. * host: "127.0.0.1",
  484. * port: 3306,
  485. * username: "queue",
  486. * password: "queue",
  487. * dbname: "queue"
  488. * }
  489. *
  490. * The PlatformJobQueue adapter expects two parameters, the host and password.
  491. * The HOST string should include both the host and port (typically 10003):
  492. * 127.0.0.1:10003
  493. * When running tests against PlatformJobQueue, it's best to do so where
  494. * Platform is installed on localhost and has maximum workers set to 20
  495. * (default is 5); do so with this zend.ini setting:
  496. * zend_jq.max_num_of_request_workers=20
  497. *
  498. * Selectively define the below in order to run tests for them.
  499. */
  500. define('TESTS_ZEND_QUEUE_ACTIVEMQ_SCHEME', false);
  501. define('TESTS_ZEND_QUEUE_ACTIVEMQ_HOST', false);
  502. define('TESTS_ZEND_QUEUE_ACTIVEMQ_PORT', false);
  503. define('TESTS_ZEND_QUEUE_DB', false);
  504. define('TESTS_ZEND_QUEUE_MEMCACHEQ_HOST', false);
  505. define('TESTS_ZEND_QUEUE_MEMCACHEQ_PORT', false);
  506. define('TESTS_ZEND_QUEUE_PLATFORMJQ_HOST', false);
  507. define('TESTS_ZEND_QUEUE_PLATFORMJQ_PASS', false);
  508. /**
  509. * Zend_Serializer adapter tests
  510. *
  511. * TESTS_ZEND_SERIALIZER_ADAPTER_WDDX_ENABLED:
  512. * - enable wddx adapter tests
  513. * - needs wddx and SimpleXml php extension installed
  514. *
  515. * TESTS_ZEND_SERIALIZER_ADAPTER_IGBINARY_ENABLED:
  516. * - enable igbinary adapter tests
  517. * - needs igbinary php extension installed
  518. */
  519. define('TESTS_ZEND_SERIALIZER_ADAPTER_WDDX_ENABLED', false);
  520. define('TESTS_ZEND_SERIALIZER_ADAPTER_IGBINARY_ENABLED', false);
  521. /**
  522. * Zend_Service_Amazon online tests
  523. */
  524. define('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ENABLED', false);
  525. define('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ACCESSKEYID', 'Enter AWSAccessKeyId here');
  526. define('TESTS_ZEND_SERVICE_AMAZON_ONLINE_SECRETKEY', 'Enter AWSSecretKey here');
  527. define('TESTS_ZEND_SERVICE_AMAZON_S3_BUCKET', 'zftestamazons3bucket');
  528. define('TESTS_ZEND_SERVICE_AMAZON_SQS_QUEUE', 'zftestamazonsqsqueuename');
  529. /**
  530. * Zend_Service_Delicious tests
  531. */
  532. define('TESTS_ZEND_SERVICE_DELICIOUS_ENABLED', false);
  533. /**
  534. * Zend_Service_DeveloperGarden tests
  535. * Setup your Username and Password to test this Service
  536. */
  537. define('TESTS_ZEND_SERVICE_DEVELOPERGARDEN_ONLINE_ENABLED', false);
  538. define('TESTS_ZEND_SERVICE_DEVELOPERGARDEN_ONLINE_LOGIN', 'ZF_Username');
  539. define('TESTS_ZEND_SERVICE_DEVELOPERGARDEN_ONLINE_PASSWORD', 'ZF_Password');
  540. /**
  541. * Zend_Service_Flickr online tests
  542. */
  543. define('TESTS_ZEND_SERVICE_FLICKR_ONLINE_ENABLED', false);
  544. define('TESTS_ZEND_SERVICE_FLICKR_ONLINE_APIKEY', 'Enter API key here');
  545. /**
  546. * Zend_Service_LiveDocx configuration
  547. *
  548. * Define username and password in order to run unit tests for LiveDocX web
  549. * services.
  550. *
  551. * phpunit/phpunit will typically work.
  552. */
  553. define('TESTS_ZEND_SERVICE_LIVEDOCX_USERNAME', false);
  554. define('TESTS_ZEND_SERVICE_LIVEDOCX_PASSWORD', false);
  555. /**
  556. * Zend_Service_Nirvanix online tests
  557. */
  558. define('TESTS_ZEND_SERVICE_NIRVANIX_ONLINE_ENABLED', false);
  559. define('TESTS_ZEND_SERVICE_NIRVANIX_ONLINE_ACCESSKEY', false);
  560. define('TESTS_ZEND_SERVICE_NIRVANIX_ONLINE_PASSWORD', false);
  561. define('TESTS_ZEND_SERVICE_NIRVANIX_ONLINE_USERNAME', false);
  562. /**
  563. * Zend_Service_ReCaptcha tests
  564. */
  565. define('TESTS_ZEND_SERVICE_RECAPTCHA_ENABLED', false);
  566. define('TESTS_ZEND_SERVICE_RECAPTCHA_ONLINE_ENABLED', false);
  567. define('TESTS_ZEND_SERVICE_RECAPTCHA_PUBLIC_KEY', 'public key');
  568. define('TESTS_ZEND_SERVICE_RECAPTCHA_PRIVATE_KEY', 'private key');
  569. define('TESTS_ZEND_SERVICE_RECAPTCHA_MAILHIDE_PUBLIC_KEY', 'public mailhide key');
  570. define('TESTS_ZEND_SERVICE_RECAPTCHA_MAILHIDE_PRIVATE_KEY', 'private mailhide key');
  571. /**
  572. * Zend_Service_Simpy tests
  573. */
  574. define('TESTS_ZEND_SERVICE_SIMPY_ENABLED', false);
  575. define('TESTS_ZEND_SERVICE_SIMPY_USERNAME', 'syapizend');
  576. define('TESTS_ZEND_SERVICE_SIMPY_PASSWORD', 'mgt37ge');
  577. /**
  578. * Zend_Service_SlideShare tests
  579. */
  580. define('TESTS_ZEND_SERVICE_SLIDESHARE_USERNAME', '');
  581. define('TESTS_ZEND_SERVICE_SLIDESHARE_PASSWORD', '');
  582. define('TESTS_ZEND_SERVICE_SLIDESHARE_SHAREDSECRET', '');
  583. define('TESTS_ZEND_SERVICE_SLIDESHARE_APIKEY', '');
  584. // The slide show ID to retrieve during tests
  585. define('TESTS_ZEND_SERVICE_SLIDESHARE_SLIDESHOWID', 0);
  586. // The tag to retrieve during tests
  587. define('TESTS_ZEND_SERVICE_SLIDESHARE_TAG', 'zend');
  588. // The group to retrieve during tests
  589. define('TESTS_ZEND_SERVICE_SLIDESHARE_GROUP', '');
  590. /**
  591. * Zend_Service_Twitter tests
  592. *
  593. * ONLINE_ENABLED indicates whether or not to run tests requiring a network
  594. * connection.
  595. *
  596. * TWITTER_USER and TWITTER_PASS are valid Twitter credentials you wish to use
  597. * when testing.
  598. */
  599. define('TESTS_ZEND_SERVICE_TWITTER_ONLINE_ENABLED', false);
  600. define('TESTS_ZEND_SERVICE_TWITTER_USER', 'zftestuser');
  601. define('TESTS_ZEND_SERVICE_TWITTER_PASS', 'zftestuser');
  602. /**
  603. * Zend_Service_WindowsAzure tests
  604. */
  605. /**
  606. * Proxy settings
  607. */
  608. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_USEPROXY', false);
  609. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_PROXY', '');
  610. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_PROXY_PORT', '8080');
  611. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_PROXY_CREDENTIALS', '');
  612. /**
  613. * Azure hosts
  614. */
  615. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_HOST_DEV', '127.0.0.1:10000');
  616. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_HOST_DEV', '127.0.0.1:10001');
  617. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_TABLE_HOST_DEV', '127.0.0.1:10002');
  618. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_HOST_PROD', 'blob.core.windows.net');
  619. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_HOST_PROD', 'queue.core.windows.net');
  620. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_TABLE_HOST_PROD', 'table.core.windows.net');
  621. /**
  622. * Credentials
  623. */
  624. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_ACCOUNT_DEV', 'devstoreaccount1');
  625. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_KEY_DEV', 'Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==');
  626. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_ACCOUNT_PROD', 'phpazure');
  627. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_KEY_PROD', 'I+ebYPcIDB6BsmfAe6pJSpOw8oXA6jMBZv1BEZcSPRqTpldt44refCl65YpKJqcBOiD21Lxsj8d6Ah8Oc2/gKA==');
  628. /**
  629. * Blob storage tests
  630. */
  631. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_RUNTESTS', false);
  632. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_RUNONPROD', false);
  633. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_RUNLARGEBLOB', true);
  634. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_CONTAINER_PREFIX', 'phpazuretestblob');
  635. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOBSTREAM_CONTAINER_PREFIX', 'phpazureteststream');
  636. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOBSA_CONTAINER_PREFIX', 'phpazuretestshared');
  637. /**
  638. * Table storage tests
  639. */
  640. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_TABLE_RUNTESTS', false);
  641. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_TABLE_RUNONPROD', false);
  642. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_TABLE_TABLENAME_PREFIX', 'phpazuretesttable');
  643. /**
  644. * Queue storage tests
  645. */
  646. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_RUNTESTS', false);
  647. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_RUNONPROD', false);
  648. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_PREFIX', 'phpazuretestqueue');
  649. /**
  650. * SessionHandler tests
  651. */
  652. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_SESSIONHANDLER_RUNTESTS', false);
  653. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_SESSIONHANDLER_RUNONPROD', false);
  654. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_SESSIONHANDLER_TABLENAME_PREFIX', 'phpazuretestsession');
  655. /**
  656. * Diagnostics tests
  657. */
  658. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_DIAGNOSTICS_RUNTESTS', false);
  659. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_DIAGNOSTICS_RUNONPROD', false);
  660. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_DIAGNOSTICS_CONTAINER_PREFIX', 'phpazuretestdiag');
  661. /**
  662. * Zend_Cloud related configuration
  663. */
  664. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_ONLINE_ENABLED', true);
  665. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_ONLINE_ACCOUNTNAME', 'provide account here');
  666. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_ONLINE_ACCOUNTKEY', 'provide key here');
  667. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_ONLINE_TABLE_HOST', 'table.core.windows.net');
  668. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_ONLINE_QUEUE_HOST', 'queue.core.windows.net');
  669. define('TESTS_ZEND_SERVICE_WINDOWSAZURE_ONLINE_STORAGE_HOST','blob.core.windows.net');
  670. /**
  671. * Zend_Service_Yahoo online tests
  672. */
  673. define('TESTS_ZEND_SERVICE_YAHOO_ONLINE_ENABLED', false);
  674. define('TESTS_ZEND_SERVICE_YAHOO_ONLINE_APPID', 'Enter APPID here');
  675. /**
  676. * Zend_Soap_AutoDiscover scenario tests for complex objects and wsdl generation
  677. *
  678. * Copy all the files of zf/tests/Zend/Soap/_files/fulltests into a directory
  679. * that can be reached by webserver and enter the base uri to this directory
  680. * into the variable. The test "Zend_Soap_AutoDiscover_OnlineTest" makes use
  681. * of the servers and AutoDiscover feature.
  682. *
  683. * NOTE: Make sure the servers are using the correct Zend Framework copy,
  684. * when having more than one version installed and include paths are changing.
  685. */
  686. define('TESTS_ZEND_SOAP_AUTODISCOVER_ONLINE_SERVER_BASEURI', false);
  687. /**
  688. * Zend_Uri tests
  689. *
  690. * Setting CRASH_TEST_ENABLED to true will enable some tests that may
  691. * potentially crash PHP on some systems, due to very deep-nesting regular
  692. * expressions.
  693. *
  694. * Only do this if you know what you are doing!
  695. */
  696. define('TESTS_ZEND_URI_CRASH_TEST_ENABLED', false);
  697. /**
  698. * Zend_Validate tests
  699. *
  700. * Set ONLINE_ENABLED if you wish to run validators that require network
  701. * connectivity.
  702. */
  703. define('TESTS_ZEND_VALIDATE_ONLINE_ENABLED', false);
  704. /**
  705. * Resources translations ('all' for all translations or 'fr', 'de', ...)
  706. */
  707. define('TESTS_ZEND_RESOURCES_TRANSLATIONS', 'all');
  708. /**
  709. * PHPUnit Code Coverage / Test Report
  710. */
  711. define('TESTS_GENERATE_REPORT', false);
  712. define('TESTS_GENERATE_REPORT_TARGET', '/path/to/target');