2010年11月1日 星期一

Aptana Setting PHPUnit & PHP Debugger

1.Install with PEAR
sudo pear upgrade PEAR
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover pear.symfony-project.com
sudo pear channel-discover components.ez.no
sudo pear install phpunit/PHPUnit

Try running:
phpunit –version
You should see the following response:

PHPUnit 3.5.0 by Sebastian Bergmann.


2.Install Manual (I used this way ^__^)
Download PHPUnit-3.5.3.tgz from http://pear.phpunit.de/get/ and extract to folder PHPUnit
Download File_Iterator-1.2.3.tgz and extract to folder PHPUnit
Download PHP_CodeCoverage-1.0.2.tgz and extract to folder PHPUnit
Download PHP_Timer-1.0.0.tgz and extract to folder PHPUnit
Download PHP_TokenStream-1.0.1.tgz and extract to folder PHPUnit
Download Text_Template-1.0.0.tgz and extract to folder PHPUnit

Setting PHPUnit as External Tools
Aptana >> External Tools Configurations
Main Tabs as below:
Location:/Applications/XAMPP/xamppfiles/bin/php
Working Directory:${workspace_loc}
Arguments:/Users/jersus/htdocs/PHPUnit/phpunit.php --verbose --stop-on-failure ${resource_loc}

Common Tabs as below:
checked Display in favorites menu > External Tools


Setting Debugger PHPUnit
Run >> Debug Configuration
PHP Script Tabs as below:
PHP Debugger : Zend Debugger
PHP Executable : PHP(/Application/XAMPP/xamppfiles/bin/php-5.3.1)
PHP File : /Applications/XAMPP/xamppfiles/bin/phpunit

PHP Script Arguments Tabs as below:
--verbose ${resource_loc}

Common Tabs as below:
checked Display in favorites menu > Debug
checked Display in favorites menu > Run

沒有留言:

wibiya widget