Conflicts: .gitignore airtime_mvc/application/Bootstrap.php airtime_mvc/application/configs/conf.php airtime_mvc/application/controllers/SystemstatusController.php airtime_mvc/application/controllers/UpgradeController.php airtime_mvc/application/upgrade/Upgrades.php airtime_mvc/application/views/scripts/systemstatus/index.phtml airtime_mvc/build/airtime.conf airtime_mvc/build/sql/defaultdata.sql airtime_mvc/public/index.php airtime_mvc/tests/application/helpers/AirtimeInstall.php install_minimal/airtime-install install_minimal/include/airtime-constants.php install_minimal/include/airtime-copy-files.sh install_minimal/include/airtime-db-install.php install_minimal/include/airtime-initialize.sh install_minimal/include/airtime-install.php install_minimal/include/airtime-installed-check.php install_minimal/include/airtime-remove-files.sh install_minimal/include/airtime-upgrade.php python_apps/media-monitor/install/media-monitor-copy-files.py python_apps/monit/monit-airtime-generic.cfg python_apps/pypo/airtime-playout python_apps/pypo/install/pypo-copy-files.py python_apps/pypo/liquidsoap/generate_liquidsoap_cfg.py python_apps/pypo/liquidsoap/ls_script.liq python_apps/pypo/pypo/__main__.py python_apps/pypo/pypo/media/update/replaygain.py python_apps/pypo/pypo/media/update/replaygainupdater.py python_apps/pypo/pypo/media/update/silananalyzer.py python_apps/python-virtualenv/airtime_virtual_env.pybundle python_apps/python-virtualenv/requirements utils/airtime-check-system.php
To get the Airtime unit tests running:
==========================
1) Install PHPUnit
We explicitly install PHPUnit 3.4 because that the most recent version
that's still supported by Zend Framework 1:
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover pear.symfony.com
sudo pear channel-discover pear.symfony-project.com
sudo pear install channel://pear.symfony-project.com/YAML
sudo pear install pear.phpunit.de/PHPUnit-3.4.10
DO NOT INSTALL the DbUnit package!
DbUnit overwrites a file that's actually part of the PHPUnit package,
/usr/share/php/PHPUnit/Extensions/Database/DataSet/QueryTable.php
with a version that's incompatible and gives an error for us.
2) Running the unit tests:
1. To run all the unit tests, run:
$ sudo ./runtests.sh
(It has to be run as root to access the database for now.)
2. To run one specific test, you can do something like:
$ export AIRTIME_UNIT_TEST="1"
$ sudo -E phpunit --filter testEditReatingShowInstance application/services/database/ShowServiceDbTest.php
IMPORTANT: Make sure you use "sudo" with the "-E" flag so it preserves the environment variable we set before that.