Database can be created using:
cd data
sqlite3 -init ../app/models/db.sql sqlite3.db
chmod 777 sqlite3.db
chmod 777 .
Install PHPUnit:
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
Run unit & integration tests:
cd tests
phpunit ./app
Download Selenium server (JAR):
http://selenium.googlecode.com/files/selenium-server-standalone-2.20.0.jar
Run Selenium server:
java -jar selenium-server-standalone.jar
Run selenium tests:
cd tests
phpunit ./selenium