NetBeans IDE and Yii projects

Comparing #9 with #10

Revision #10 was created by Trejder Trejder on Nov 16, 2010, 9:05:20 AM.

updated PHPUnit installation instruction path and some minor changes in text

Tags

IDE, Selenium, PHPUnit, XDebug, NetBeans

Content

[...]
## Testing

To run functional tests and unit tests in Yii, recommended is installing PHPUnit and SeleniumRC.

- Install PHPUnit
- Follow [the official
version 3.6 installation instructions](http://www.phpunit.de/manual/3.06/en/installation.html).
- Open "Tools > Options > PHP > Unit Testing" and set the correct path to phpunit.bat
- Install SeleniumRC by getting the NetBeans plugin
[...]
- Restart NetBeans

For above and many more reasons, Yii core files should be kept **outside** project directory and anywhere outside any web-accessible directory. I.e. if you keep your project files in Apache's _httpd_ directory, it is wise to create a new dir (called _yii_, _framewore_ or sth. like that) in the same level of dirtree (inside Apache main folder, **not** in _httpd_ dir!) and put Yii core files there. If you do that, you have to include Yii folder in _Include Path_, as it is written above.
 
 
#### Usage:
- Typing suggestions: Ctrl-Space
- Show Function parameters: Ctrl-P
[...]
## Debugging

- In
stallclude the Xdebug extension for PHP
 
  - Apache and PHP 5.3, php.ini
 (should already be available):
 
  - In php.ini enable (remove trailing comment semicolon sign - ;) these settings
: <pre>zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000</pre>
[...]