Yii 1.1.16 and PHPUnit 3.5.15 on Ubuntu 12.04 using Composer

Yii 1.1.16 works well with PHPUnit version  < 3.8.*, and this phpunit are install in your project root.

cd /var/www/yourYiiProject/

Create composer.json file

{
    "require-dev": {
        "phpunit/phpunit": "3.7.*",
        "phpunit/phpunit-selenium": ">=1.2",
        "phpunit/dbunit": ">=1.2",
        "phpunit/phpunit-story": "*",
        "phpunit/php-invoker": "*"
    },
    "autoload": {
        "psr-0": {"": "src"}
    },
    "config": {
        "bin-dir": "bin/"
    }
}

Install Composer
curl -sS https://getcomposer.org/installer | php
Run the Composer
./composer.phar install

Check your phpunit version
./bin/phpunit --version
Run the phpunit with your test code
user@jubuntu:#cd /var/www/yourYiiProject/protected/tests
user@jubuntu:tests# ../../bin/phpunit unit/MyUnitTest.php
Source References & thanks to Richard Walker:

http://stackoverflow.com/questions/22368623/php-warning-include-phpunit-extensions-story-testcase-php-failed-to-open-stream

http://blog.mediasuite.co.nz/tip-how-to-set-up-phpunit-for-yii-using-composer/

Advertisements

Ubuntu:: Mount windows partition permanently

Ubuntu:: Mount windows partition permanently

Open terminal.

1. Create folder

$ sudo mkdir -p /media/www

2.  View disk info

$ sudo fdisk -l

3. Mount disk

$ sudo mount -t ntfs -o nls=utf8,umask=0222 /dev/sda3 /media/www

 

Credit: http://www.cyberciti.biz/faq/mounting-windows-partition-onto-ubuntu-linux/