CIUnit for CodeIgniter 2.x
./tools/install.sh [CI2 Project Path]
cp -R CIUnit-for-CI2/application [CI2 Project Path]/
cp -R CIUnit-for-CI2/tests [CI2 Project Path]/
vi [CI2 Project Path]/application/config/database.php
$active_group = 'default';
+ if (defined('CIUnit_Version')) {
+ $active_group .= '_test';
+ }
$active_record = TRUE;
cd [CI2 Project Path]/tests
phpunit
cd [CI2 Project Path]/tests
phpunit --no-configuration --bootstrap ../application/third_party/CIUnit/bootstrap_phpunit.php [Directory or PHP file path]
CIUnit AllTests
CIUnit UnitTest