8 * This source file is subject to the new BSD license that is bundled
9 * with this package in the file LICENSE.txt.
10 * It is also available through the world-wide-web at this URL:
11 * http://framework.zend.com/license/new-bsd
12 * If you did not receive a copy of the license and are unable to
13 * obtain it through the world-wide-web, please send an email
14 * to license@zend.com so we can send you a copy immediately.
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
24 * This file defines configuration for running the unit tests for the Zend
25 * Framework. Some tests have dependencies to PHP extensions or databases
26 * which may not necessary installed on the target system. For these cases,
27 * the ability to disable or configure testing is provided below. Tests for
28 * components which should run universally are always run by the master
29 * suite and cannot be disabled.
31 * Do not edit this file. Instead, copy this file to TestConfiguration.php,
32 * and edit the new file. Never commit plaintext passwords to the source
39 * OB_ENABLED should be enabled for some tests to check if all functionality
40 * works as expected. Such tests include those for Zend_Soap and Zend_Session,
41 * which require that headers not be sent in order to work.
43 define('TESTS_ZEND_OB_ENABLED', false);
46 * Zend_Auth_Adapter_DbTable tests
48 define('TESTS_ZEND_AUTH_ADAPTER_DBTABLE_PDO_SQLITE_ENABLED', false);
49 define('TESTS_ZEND_AUTH_ADAPTER_DBTABLE_PDO_SQLITE_DATABASE', ':memory:');
52 * Zend_Auth_Adapter_Ldap online tests
53 * (See also TESTS_ZEND_LDAP_* configuration constants below)
55 define('TESTS_ZEND_AUTH_ADAPTER_LDAP_ONLINE_ENABLED', false);
60 * TESTS_ZEND_CACHE_SQLITE_ENABLED => sqlite extension has to be enabled
61 * TESTS_ZEND_CACHE_APC_ENABLED => apc extension has to be enabled
62 * TESTS_ZEND_CACHE_MEMCACHED_ENABLED => memcache extension has to be enabled and
63 * a memcached server has to be available
64 * TESTS_ZEND_CACHE_XCACHE_ENABLED => xcache extension has to be enabled
66 define('TESTS_ZEND_CACHE_SQLITE_ENABLED', false);
67 define('TESTS_ZEND_CACHE_APC_ENABLED', false);
68 define('TESTS_ZEND_CACHE_XCACHE_ENABLED', true);
69 define('TESTS_ZEND_CACHE_XCACHE_USER', null);
70 define('TESTS_ZEND_CACHE_XCACHE_PASSWORD', null);
71 define('TESTS_ZEND_CACHE_PLATFORM_ENABLED', false);
72 define('TESTS_ZEND_CACHE_MEMCACHED_ENABLED', false);
73 define('TESTS_ZEND_CACHE_MEMCACHED_HOST', '127.0.0.1');
74 define('TESTS_ZEND_CACHE_MEMCACHED_PORT', 11211);
75 define('TESTS_ZEND_CACHE_MEMCACHED_PERSISTENT', true);
80 * TESTS_ZEND_CONTROLLER_DISPATCHER_OB => test disabling output buffering in
83 define('TESTS_ZEND_CONTROLLER_DISPATCHER_OB', false);
86 * Zend_Db_Adapter_Pdo_Mysql and Zend_Db_Adapter_Mysqli
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.
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);
101 * Zend_Db_Adapter_Pdo_Sqlite
103 * Username and password are irrelevant for SQLite.
105 define('TESTS_ZEND_DB_ADAPTER_PDO_SQLITE_ENABLED', false);
106 define('TESTS_ZEND_DB_ADAPTER_PDO_SQLITE_DATABASE', ':memory:');
109 * Zend_Db_Adapter_Pdo_Mssql
111 * Note that you need to patch your ntwdblib.dll, the one that
112 * comes with PHP does not work. See user comments at
113 * http://us2.php.net/manual/en/ref.mssql.php
115 define('TESTS_ZEND_DB_ADAPTER_PDO_MSSQL_ENABLED', false);
116 define('TESTS_ZEND_DB_ADAPTER_PDO_MSSQL_HOSTNAME', '127.0.0.1');
117 define('TESTS_ZEND_DB_ADAPTER_PDO_MSSQL_USERNAME', null);
118 define('TESTS_ZEND_DB_ADAPTER_PDO_MSSQL_PASSWORD', null);
119 define('TESTS_ZEND_DB_ADAPTER_PDO_MSSQL_DATABASE', 'test');
122 * Zend_Db_Adapter_Pdo_Pgsql
124 define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_ENABLED', false);
125 define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_HOSTNAME', '127.0.0.1');
126 define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_USERNAME', null);
127 define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_PASSWORD', null);
128 define('TESTS_ZEND_DB_ADAPTER_PDO_PGSQL_DATABASE', 'postgres');
131 * Zend_Db_Adapter_Oracle and Zend_Db_Adapter_Pdo_Oci
133 * There are separate properties to enable tests for the PDO_OCI adapter and
134 * the native Oracle adapter, but the other properties are shared between the
135 * two Oracle-related Zend_Db adapters.
137 define('TESTS_ZEND_DB_ADAPTER_PDO_OCI_ENABLED', false);
138 define('TESTS_ZEND_DB_ADAPTER_ORACLE_ENABLED', false);
139 define('TESTS_ZEND_DB_ADAPTER_ORACLE_HOSTNAME', '127.0.0.1');
140 define('TESTS_ZEND_DB_ADAPTER_ORACLE_USERNAME', null);
141 define('TESTS_ZEND_DB_ADAPTER_ORACLE_PASSWORD', null);
142 define('TESTS_ZEND_DB_ADAPTER_ORACLE_SID', 'xe');
145 * Zend_Db_Adapter_Db2 and Zend_Db_Adapter_Pdo_Ibm
146 * There are separate properties to enable tests for the PDO_IBM adapter and
147 * the native DB2 adapter, but the other properties are shared between the
148 * two related Zend_Db adapters.
150 define('TESTS_ZEND_DB_ADAPTER_PDO_IBM_ENABLED', false);
151 define('TESTS_ZEND_DB_ADAPTER_DB2_ENABLED', false);
152 define('TESTS_ZEND_DB_ADAPTER_DB2_HOSTNAME', '127.0.0.1');
153 define('TESTS_ZEND_DB_ADAPTER_DB2_PORT', 50000);
154 define('TESTS_ZEND_DB_ADAPTER_DB2_USERNAME', null);
155 define('TESTS_ZEND_DB_ADAPTER_DB2_PASSWORD', null);
156 define('TESTS_ZEND_DB_ADAPTER_DB2_DATABASE', 'sample');
159 * Zend_Db_Adapter_Sqlsrv
160 * Note: Make sure that you create the "test" database and set a
161 * username and password
164 define('TESTS_ZEND_DB_ADAPTER_SQLSRV_ENABLED', false);
165 define('TESTS_ZEND_DB_ADAPTER_SQLSRV_HOSTNAME', 'localhost\SQLEXPRESS');
166 define('TESTS_ZEND_DB_ADAPTER_SQLSRV_USERNAME', null);
167 define('TESTS_ZEND_DB_ADAPTER_SQLSRV_PASSWORD', null);
168 define('TESTS_ZEND_DB_ADAPTER_SQLSRV_DATABASE', 'test');
171 * Zend_Feed_Reader tests
173 * If the ONLINE_ENABLED property is false, only tests that can be executed
174 * without network connectivity are run; when enabled, all tests will run.
176 define('TESTS_ZEND_FEED_READER_ONLINE_ENABLED', false);
181 * If the ONLINE_ENABLED property is false, only tests that can be executed with
182 * a mock HTTP client are run. No request is sent to the Google Gdata servers.
183 * If ONLINE_ENABLED is true, some tests may make requests to the remote
184 * servers. This does not work if you are running tests on a disconnected
185 * client host. Also, the tests may show as failures if the Google servers
186 * cannot be reached or if they do not respond for another reason.
188 * If the CLIENTLOGIN_ENABLED property below is false, the authenticated
189 * tests are reported Skipped in the test run. Set this property to true
190 * to enable tests that require ClientLogin authentication. Enter your
191 * Google login credentials in the EMAIL and PASSWORD properties below.
193 * Edit TestConfiguration.php, not TestConfiguration.php.dist.
194 * Never commit plaintext passwords to the source code repository.
196 * Note: the GData tests currently require that the TZID env variable
197 * be set or the timezone otherwise configured. You'll see errors from the
198 * tests if this is not the case.
200 define('TESTS_ZEND_GDATA_ONLINE_ENABLED', false);
201 define('TESTS_ZEND_GDATA_CLIENTLOGIN_ENABLED', false);
204 * The credentials provided here should be only for a TEST account.
205 * Data for various services in this account may be added to, updated,
206 * or deleted based upon the actions of these test accounts.
208 define('TESTS_ZEND_GDATA_CLIENTLOGIN_EMAIL', 'example@example.com');
209 define('TESTS_ZEND_GDATA_CLIENTLOGIN_PASSWORD', 'password');
212 * This is the ID of a blank blog. There is no need to have
213 * any content in this blog. Also, blogs can only be used
214 * several times for the purpose of these test cases before
215 * they must be deleted and recreated. Otherwise, the tests
216 * will start failing, as posts to Blogger will return a 201 Created
217 * response even though the entry was not posted to the blog.
218 * This problem is being investigated.
220 define('TESTS_ZEND_GDATA_BLOGGER_ONLINE_ENABLED', false);
221 define('TESTS_ZEND_GDATA_BLOG_ID', '1111111111111111111');
224 * This is the key for a spreadsheet with data only in the first row of
225 * the spreadsheet. The strings 'a1', 'b1', 'c1', 'd1' should be in the
226 * corresponding cell locations.
228 define('TESTS_ZEND_GDATA_SPREADSHEETS_ONLINE_ENABLED', false);
229 define('TESTS_ZEND_GDATA_SPREADSHEETS_SPREADSHEETKEY', 'o01111111111111111111.1111111111111111111');
230 define('TESTS_ZEND_GDATA_SPREADSHEETS_WORKSHEETID', 'default');
233 * This indicates that online tests for the Google Calendar API should
234 * be performed. The default calendar will be used.
236 define('TESTS_ZEND_GDATA_CALENDAR_ONLINE_ENABLED', false);
239 * This is the fully-qualified domain name for a domiain hosted using
240 * Google Apps. This domain must be registered with Google Apps and
241 * have API access enabled. This should be a TEST domain only.
243 define('TESTS_ZEND_GDATA_GAPPS_ONLINE_ENABLED', false);
244 define('TESTS_ZEND_GDATA_GAPPS_DOMAIN', 'example.com.invalid');
245 define('TESTS_ZEND_GDATA_GAPPS_EMAIL', 'example@example.com');
246 define('TESTS_ZEND_GDATA_GAPPS_PASSWORD', 'password');
249 * This is the ONLINE_ENABLED property for Google Base.
251 define('TESTS_ZEND_GDATA_GBASE_ONLINE_ENABLED', false);
254 * This indicates that online tests for the Books Search data API
255 * should be performed.
257 define('TESTS_ZEND_GDATA_BOOKS_ONLINE_ENABLED', false);
260 * This indicates that online tests for the YouTube data API should
263 define('TESTS_ZEND_GDATA_YOUTUBE_ONLINE_ENABLED', false);
266 * This is the username to use for retrieving subscriptions, etc
268 define('TESTS_ZEND_GDATA_YOUTUBE_ACCOUNT', 'zfgdata');
271 * This is the developer key to access the YouTube API
273 define('TESTS_ZEND_GDATA_YOUTUBE_DEVELOPER_KEY', 'your_developer_key_here');
276 * This is the client ID to access the YouTube API
278 define('TESTS_ZEND_GDATA_YOUTUBE_CLIENT_ID', 'ZF_UnitTests_unknown');
281 * This indicates that online tests for the Google Documents API should
284 define('TESTS_ZEND_GDATA_DOCS_ONLINE_ENABLED', false);
287 * This indicates that online tests for the GData Photos API should
290 define('TESTS_ZEND_GDATA_PHOTOS_ONLINE_ENABLED', false);
293 * This indicates that online tests for the Google Health API should
296 define('TESTS_ZEND_GDATA_HEALTH_ONLINE_ENABLED', false);
299 * Zend_Http_Client tests
301 * To enable the dynamic Zend_Http_Client tests, you will need to symbolically
302 * link or copy the files in tests/Zend/Http/Client/_files to a directory
303 * under your web server(s) document root and set this constant to point to the
304 * URL of this directory.
306 define('TESTS_ZEND_HTTP_CLIENT_BASEURI', false);
309 * Zend_Http_Client_Proxy tests
311 * HTTP proxy to be used for testing the Proxy adapter. Set to a string of
312 * the form 'host:port'. Set to null to skip HTTP proxy tests.
314 define('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY', false);
315 define('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY_USER', '');
316 define('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY_PASS', '');
319 * Zend_Loader_Autoloader multi-version support tests
321 * ENABLED: whether or not to run the multi-version tests
322 * PATH: path to a directory containing multiple ZF version installs
323 * LATEST: most recent ZF version in the PATH
325 * LATEST_MAJOR: most recent ZF major version in the PATH to test against
327 * LATEST_MINOR: most recent ZF minor version in the PATH to test against
329 * SPECIFIC: specific ZF version in the PATH to test against
331 * As an example, consider the following tree:
334 * |-- ZendFramework-1.9.1-minimal
337 * |-- ZendFramework-1.8.3
341 * You would then set the value of "LATEST" and "LATEST_MAJOR" to "1.9.2", and
342 * could choose between "1.9.2", "1.8.4PL1", and "1.7.8" for "LATEST_MINOR",
343 * and any version number for "SPECIFIC". "PATH" would point to the parent
344 * "ZendFramework" directory.
346 define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_ENABLED', false);
347 define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_PATH', false);
348 define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_LATEST', false);
349 define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_LATEST_MAJOR', false);
350 define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_LATEST_MINOR', false);
351 define('TESTS_ZEND_LOADER_AUTOLOADER_MULTIVERSION_SPECIFIC', false);
354 * Zend_Ldap online tests
356 define('TESTS_ZEND_LDAP_ONLINE_ENABLED', false);
358 /* These largely map to the options described in the Zend_Ldap and
359 * Zend_Auth_Adapter_Ldap documentation.
361 * Example Configuration for Active Directory:
363 * USE_START_TLS: true
365 * USERNAME: CN=User 1,CN=Users,DC=w,DC=net
366 * PRINCIPAL_NAME: user1@w.net
367 * LDAP_PASSWORD: pass1
368 * BASE_DN: CN=Users,DC=w,DC=net
370 * ACCOUNT_DOMAIN_NAME_SHORT: W
371 * ALT_USERNAME: user2
372 * ALT_DN: CN=User 2,CN=Users,DC=w,DC=net
373 * ALT_PASSWORD: pass2
375 * Example Configuration for OpenLDAP
377 * USERNAME: CN=user1,DC=foo,DC=net
378 * PRINCIPAL_NAME: user1@foo.net
379 * LDAP_PASSWORD: pass1
380 * BIND_REQUIRES_DN: true
381 * BASE_DN: OU=Sales,DC=w,DC=net
382 * DOMAIN_NAME: foo.net
383 * ACCOUNT_DOMAIN_NAME_SHORT: FOO
384 * ALT_USERNAME: abaker
385 * ALT_DN: CN=Alice Baker,OU=Sales,DC=foo,DC=net
386 * ALT_PASSWORD: apass
388 define('TESTS_ZEND_LDAP_HOST', 'localhost');
389 //define('TESTS_ZEND_LDAP_PORT', 389);
390 define('TESTS_ZEND_LDAP_USE_START_TLS', true);
391 //define('TESTS_ZEND_LDAP_USE_SSL', false);
392 define('TESTS_ZEND_LDAP_USERNAME', 'CN=someUser,DC=example,DC=com');
393 define('TESTS_ZEND_LDAP_PRINCIPAL_NAME', 'someUser@example.com');
394 define('TESTS_ZEND_LDAP_PASSWORD', null);
395 define('TESTS_ZEND_LDAP_BIND_REQUIRES_DN', true);
396 define('TESTS_ZEND_LDAP_BASE_DN', 'OU=Sales,DC=example,DC=com');
397 //define('TESTS_ZEND_LDAP_ACCOUNT_FILTER_FORMAT', '(&(objectClass=posixAccount)(uid=%s))');
398 define('TESTS_ZEND_LDAP_ACCOUNT_DOMAIN_NAME', 'example.com');
399 define('TESTS_ZEND_LDAP_ACCOUNT_DOMAIN_NAME_SHORT', 'EXAMPLE');
400 define('TESTS_ZEND_LDAP_ALT_USERNAME', 'anotherUser');
401 define('TESTS_ZEND_LDAP_ALT_DN', 'CN=Another User,OU=Sales,DC=example,DC=com');
402 define('TESTS_ZEND_LDAP_ALT_PASSWORD', null);
407 * If the TESTS_ZEND_LOCALE_FORMAT_SETLOCALE property below is a valid,
408 * locally recognized locale (try "locale -a"), then all tests in
409 * tests/Zend/Locale/ test suites will execute *after*
410 * setlocale(LC_ALL, TESTS_ZEND_LOCALE_FORMAT_SETLOCALE);
411 * Primarily, this switches certain PHP functions to emit "localized" output,
412 * including the built-in "to string" for integer and float conversions.
413 * Thus, a locale of 'fr_FR' yields number-to-string conversions in a
414 * localized form with the decimal place separator chosen via:
415 * setlocale(LC_ALL, 'fr_FR@euro');
417 //define('TESTS_ZEND_LOCALE_FORMAT_SETLOCALE', 'fr');
418 //define('TESTS_ZEND_LOCALE_FORMAT_SETLOCALE', 'fr_FR@euro');
419 define('TESTS_ZEND_LOCALE_FORMAT_SETLOCALE', false);
424 * If the BCMATH_ENABLED property below is false, all arithmetic
425 * operations will use ordinary PHP math operators and functions.
426 * Otherwise, the bcmath functions will be used for unlimited precision.
428 * If the EXTENDED_COVERAGE property below is false, most of the I18N
429 * unit tests will not be computed... this speeds tests up to 80 minutes
430 * when doing reports. *
431 * Edit TestConfiguration.php, not TestConfiguration.php.dist.
433 define('TESTS_ZEND_LOCALE_BCMATH_ENABLED', true);
434 define('TESTS_ZEND_I18N_EXTENDED_COVERAGE', true);
437 * Zend_Mail_Storage tests
439 * TESTS_ZEND_MAIL_SERVER_TESTDIR and TESTS_ZEND_MAIL_SERVER_FORMAT are used for POP3 and IMAP tests.
440 * TESTS_ZEND_MAIL_SERVER_FORMAT is the format your test mail server uses: 'mbox' or 'maildir'. The mail
441 * storage for the user specified in your POP3 or IMAP tests should be TESTS_ZEND_MAIL_SERVER_TESTDIR. Be
442 * careful: it's cleared before copying the files. If you want to copy the files manually set the dir
443 * to null (or anything == null).
445 * TESTS_ZEND_MAIL_TEMPDIR is used for testing write operations in local storages. If not set (== null)
448 define('TESTS_ZEND_MAIL_SERVER_TESTDIR', null);
449 define('TESTS_ZEND_MAIL_SERVER_FORMAT', 'mbox');
450 define('TESTS_ZEND_MAIL_TEMPDIR', null);
453 * Zend_Mail_Storage_Pop3 / Zend_Mail_Transport_Pop3
455 * IMPORTANT: you need to copy tests/Zend/Mail/_files/test.mbox to your mail
456 * if you haven't set TESTS_ZEND_MAIL_SERVER_TESTDIR
458 define('TESTS_ZEND_MAIL_POP3_ENABLED', false);
459 define('TESTS_ZEND_MAIL_POP3_HOST', 'localhost');
460 define('TESTS_ZEND_MAIL_POP3_USER', 'test');
461 define('TESTS_ZEND_MAIL_POP3_PASSWORD', '');
462 // test SSL connections if enabled in your test server
463 define('TESTS_ZEND_MAIL_POP3_SSL', true);
464 define('TESTS_ZEND_MAIL_POP3_TLS', true);
465 // WRONG_PORT should be an existing server port,
466 // INVALID_PORT should be a non existing (each on defined host)
467 define('TESTS_ZEND_MAIL_POP3_WRONG_PORT', 80);
468 define('TESTS_ZEND_MAIL_POP3_INVALID_PORT', 3141);
471 * Zend_Mail_Storage_Imap / Zend_Mail_Transport_Imap
473 * IMPORTANT: you need to copy tests/Zend/Mail/_files/test.mbox to your mail
474 * if you haven't set TESTS_ZEND_MAIL_SERVER_TESTDIR
476 define('TESTS_ZEND_MAIL_IMAP_ENABLED', false);
477 define('TESTS_ZEND_MAIL_IMAP_HOST', 'localhost');
478 define('TESTS_ZEND_MAIL_IMAP_USER', 'test');
479 define('TESTS_ZEND_MAIL_IMAP_PASSWORD', '');
480 // test SSL connections if enabled in your test server
481 define('TESTS_ZEND_MAIL_IMAP_SSL', true);
482 define('TESTS_ZEND_MAIL_IMAP_TLS', true);
483 // WRONG_PORT should be an existing server port,
484 // INVALID_PORT should be a non-existing (each on defined host)
485 define('TESTS_ZEND_MAIL_IMAP_WRONG_PORT', 80);
486 define('TESTS_ZEND_MAIL_IMAP_INVALID_PORT', 3141);
490 * Zend_Mail_Storage_Maildir test
492 * Before enabling this test you have to unpack messages.tar in
493 * Zend/Mail/_files/test.maildir/cur/ and remove the tar for this test to work.
494 * That's because the messages files have a colon in the filename and that's a
495 * forbidden character on Windows.
497 define('TESTS_ZEND_MAIL_MAILDIR_ENABLED', false);
500 * Zend_Mail_Transport_Smtp
502 * @todo TO be implemented
504 define('TESTS_ZEND_MAIL_SMTP_ENABLED', false);
505 define('TESTS_ZEND_MAIL_SMTP_HOST', 'localhost');
506 define('TESTS_ZEND_MAIL_SMTP_PORT', 25);
507 define('TESTS_ZEND_MAIL_SMTP_USER', 'testuser');
508 define('TESTS_ZEND_MAIL_SMTP_PASSWORD', 'testpassword');
509 define('TESTS_ZEND_MAIL_SMTP_AUTH', false);
510 // AUTH can be set to false or a string of AUTH method (e.g. LOGIN, PLAIN, CRAMMD5 or DIGESTMD5)
513 * Zend_Queue Test Configuration constants
515 * The Zend_Queue_Adapter_Db constant should be a JSON-encoded string
516 * representing a configuration object for Zend_Db::factory(). For example:
526 * The PlatformJobQueue adapter expects two parameters, the host and password.
527 * The HOST string should include both the host and port (typically 10003):
529 * When running tests against PlatformJobQueue, it's best to do so where
530 * Platform is installed on localhost and has maximum workers set to 20
531 * (default is 5); do so with this zend.ini setting:
532 * zend_jq.max_num_of_request_workers=20
534 * Selectively define the below in order to run tests for them.
536 define('TESTS_ZEND_QUEUE_ACTIVEMQ_SCHEME', false);
537 define('TESTS_ZEND_QUEUE_ACTIVEMQ_HOST', false);
538 define('TESTS_ZEND_QUEUE_ACTIVEMQ_PORT', false);
539 define('TESTS_ZEND_QUEUE_DB', false);
540 define('TESTS_ZEND_QUEUE_MEMCACHEQ_HOST', false);
541 define('TESTS_ZEND_QUEUE_MEMCACHEQ_PORT', false);
542 define('TESTS_ZEND_QUEUE_PLATFORMJQ_HOST', false);
543 define('TESTS_ZEND_QUEUE_PLATFORMJQ_PASS', false);
546 * Zend_Serializer adapter tests
548 * TESTS_ZEND_SERIALIZER_ADAPTER_WDDX_ENABLED:
549 * - enable wddx adapter tests
550 * - needs wddx and SimpleXml php extension installed
552 * TESTS_ZEND_SERIALIZER_ADAPTER_IGBINARY_ENABLED:
553 * - enable igbinary adapter tests
554 * - needs igbinary php extension installed
556 define('TESTS_ZEND_SERIALIZER_ADAPTER_WDDX_ENABLED', false);
557 define('TESTS_ZEND_SERIALIZER_ADAPTER_IGBINARY_ENABLED', false);
560 * Zend_Service_Amazon online tests
562 define('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ENABLED', false);
563 define('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ACCESSKEYID', 'Enter AWSAccessKeyId here');
564 define('TESTS_ZEND_SERVICE_AMAZON_ONLINE_SECRETKEY', 'Enter AWSSecretKey here');
565 define('TESTS_ZEND_SERVICE_AMAZON_S3_BUCKET', 'zftestamazons3bucket');
568 * Zend_Service_Delicious tests
570 define('TESTS_ZEND_SERVICE_DELICIOUS_ENABLED', false);
573 * Zend_Service_DeveloperGarden tests
574 * Setup your Username and Password to test this Service
576 define('TESTS_ZEND_SERVICE_DEVELOPERGARDEN_ONLINE_ENABLED', false);
577 define('TESTS_ZEND_SERVICE_DEVELOPERGARDEN_ONLINE_LOGIN', 'ZF_Username');
578 define('TESTS_ZEND_SERVICE_DEVELOPERGARDEN_ONLINE_PASSWORD', 'ZF_Password');
581 * Zend_Service_Flickr online tests
583 define('TESTS_ZEND_SERVICE_FLICKR_ONLINE_ENABLED', false);
584 define('TESTS_ZEND_SERVICE_FLICKR_ONLINE_APIKEY', 'Enter API key here');
587 * Zend_Service_LiveDocx configuration
589 * Define username and password in order to run unit tests for LiveDocX web
592 * phpunit/phpunit will typically work.
594 define('TESTS_ZEND_SERVICE_LIVEDOCX_USERNAME', false);
595 define('TESTS_ZEND_SERVICE_LIVEDOCX_PASSWORD', false);
598 * Zend_Service_ReCaptcha tests
600 define('TESTS_ZEND_SERVICE_RECAPTCHA_ENABLED', false);
601 define('TESTS_ZEND_SERVICE_RECAPTCHA_ONLINE_ENABLED', false);
602 define('TESTS_ZEND_SERVICE_RECAPTCHA_PUBLIC_KEY', 'public key');
603 define('TESTS_ZEND_SERVICE_RECAPTCHA_PRIVATE_KEY', 'private key');
604 define('TESTS_ZEND_SERVICE_RECAPTCHA_MAILHIDE_PUBLIC_KEY', 'public mailhide key');
605 define('TESTS_ZEND_SERVICE_RECAPTCHA_MAILHIDE_PRIVATE_KEY', 'private mailhide key');
608 * Zend_Service_Simpy tests
610 define('TESTS_ZEND_SERVICE_SIMPY_ENABLED', false);
611 define('TESTS_ZEND_SERVICE_SIMPY_USERNAME', 'syapizend');
612 define('TESTS_ZEND_SERVICE_SIMPY_PASSWORD', 'mgt37ge');
615 * Zend_Service_SlideShare tests
617 define('TESTS_ZEND_SERVICE_SLIDESHARE_USERNAME', '');
618 define('TESTS_ZEND_SERVICE_SLIDESHARE_PASSWORD', '');
619 define('TESTS_ZEND_SERVICE_SLIDESHARE_SHAREDSECRET', '');
620 define('TESTS_ZEND_SERVICE_SLIDESHARE_APIKEY', '');
622 // The slide show ID to retrieve during tests
623 define('TESTS_ZEND_SERVICE_SLIDESHARE_SLIDESHOWID', 0);
625 // The tag to retrieve during tests
626 define('TESTS_ZEND_SERVICE_SLIDESHARE_TAG', 'zend');
628 // The group to retrieve during tests
629 define('TESTS_ZEND_SERVICE_SLIDESHARE_GROUP', '');
632 * Zend_Service_Twitter tests
634 * ONLINE_ENABLED indicates whether or not to run tests requiring a network
637 * TWITTER_USER and TWITTER_PASS are valid Twitter credentials you wish to use
640 define('TESTS_ZEND_SERVICE_TWITTER_ONLINE_ENABLED', false);
641 define('TESTS_ZEND_SERVICE_TWITTER_USER', 'zftestuser');
642 define('TESTS_ZEND_SERVICE_TWITTER_PASS', 'zftestuser');
645 * Zend_Service_WindowsAzure tests
651 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_USEPROXY', false);
652 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_PROXY', '');
653 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_PROXY_PORT', '8080');
654 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_PROXY_CREDENTIALS', '');
659 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_HOST_DEV', '127.0.0.1:10000');
660 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_HOST_DEV', '127.0.0.1:10001');
661 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_TABLE_HOST_DEV', '127.0.0.1:10002');
662 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_HOST_PROD', 'blob.core.windows.net');
663 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_HOST_PROD', 'queue.core.windows.net');
664 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_TABLE_HOST_PROD', 'table.core.windows.net');
669 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_ACCOUNT_DEV', 'devstoreaccount1');
670 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_KEY_DEV', 'Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==');
671 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_ACCOUNT_PROD', 'phpazure');
672 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_STORAGE_KEY_PROD', 'I+ebYPcIDB6BsmfAe6pJSpOw8oXA6jMBZv1BEZcSPRqTpldt44refCl65YpKJqcBOiD21Lxsj8d6Ah8Oc2/gKA==');
677 // Enable this tests only when you have a working account
678 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_RUNTESTS', false);
679 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_RUNONPROD', false);
680 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_RUNLARGEBLOB', true);
681 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOB_CONTAINER_PREFIX', 'phpazuretestblob');
682 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOBSTREAM_CONTAINER_PREFIX', 'phpazureteststream');
683 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_BLOBSA_CONTAINER_PREFIX', 'phpazuretestshared');
686 * Table storage tests
688 // Enable this tests only when you have a working account
689 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_TABLE_RUNTESTS', false);
690 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_TABLE_RUNONPROD', false);
691 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_TABLE_TABLENAME_PREFIX', 'phpazuretesttable');
694 * Queue storage tests
696 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_RUNTESTS', false);
697 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_RUNONPROD', false);
698 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_PREFIX', 'phpazuretestqueue');
701 * SessionHandler tests
703 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_SESSIONHANDLER_RUNTESTS', false);
704 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_SESSIONHANDLER_RUNONPROD', false);
705 define('TESTS_ZEND_SERVICE_WINDOWSAZURE_SESSIONHANDLER_TABLENAME_PREFIX', 'phpazuretestsession');
708 * Zend_Service_Yahoo online tests
710 define('TESTS_ZEND_SERVICE_YAHOO_ONLINE_ENABLED', false);
711 define('TESTS_ZEND_SERVICE_YAHOO_ONLINE_APPID', 'Enter APPID here');
714 * Zend_Soap_AutoDiscover scenario tests for complex objects and wsdl generation
716 * Copy all the files of zf/tests/Zend/Soap/_files/fulltests into a directory
717 * that can be reached by webserver and enter the base uri to this directory
718 * into the variable. The test "Zend_Soap_AutoDiscover_OnlineTest" makes use
719 * of the servers and AutoDiscover feature.
721 * NOTE: Make sure the servers are using the correct Zend Framework copy,
722 * when having more than one version installed and include paths are changing.
724 define('TESTS_ZEND_SOAP_AUTODISCOVER_ONLINE_SERVER_BASEURI', false);
729 * Setting CRASH_TEST_ENABLED to true will enable some tests that may
730 * potentially crash PHP on some systems, due to very deep-nesting regular
733 * Only do this if you know what you are doing!
735 define('TESTS_ZEND_URI_CRASH_TEST_ENABLED', false);
738 * Zend_Validate tests
740 * Set ONLINE_ENABLED if you wish to run validators that require network
743 define('TESTS_ZEND_VALIDATE_ONLINE_ENABLED', false);
746 * PHPUnit Code Coverage / Test Report
748 define('TESTS_GENERATE_REPORT', false);
749 define('TESTS_GENERATE_REPORT_TARGET', '/path/to/target');