-
Notifications
You must be signed in to change notification settings - Fork 1
Unit testing requirements
- memcache
- memcached
- sqlite3
- pcntl
- xdebug
The Test/Temp directory must be writable and must be on a POSIX compliant filesystem. Alternatively you can override the temp directory for the NativeSyslogConnectionTest by exporting the YAPEPBASE_TEST_LOGPATH and the YAPEPBASE_TEST_PIDPATH environment variable for the CronJobTest.
For the MySQL tests you need access to an empty mysql database, preferably with a read-write and a read only user, but the tests should work with only a read-write user. The read-write user must have both schema and data modification privileges on the database, the read only user needs only the SELECT privilege. To configure the test MySQL connection set and export the folowing environment variables:
- YAPEPBASE_TEST_MYSQL_RW_HOST
- YAPEPBASE_TEST_MYSQL_RW_USER
- YAPEPBASE_TEST_MYSQL_RW_PASSWORD
- YAPEPBASE_TEST_MYSQL_RW_DATABASE
- YAPEPBASE_TEST_MYSQL_RO_HOST
- YAPEPBASE_TEST_MYSQL_RO_USER
- YAPEPBASE_TEST_MYSQL_RO_PASSWORD
- YAPEPBASE_TEST_MYSQL_RO_DATABASE
Additionally the following environment variables may be set:
- YAPEPBASE_TEST_MYSQL_RW_PORTS
- YAPEPBASE_TEST_MYSQL_RO_PORTS
The RW and RO configuration may be the same if not using separate read-write and read only privileges and servers.
For File System usages:
- YAPEPBASE_TEST_TEMPPATH