NetBeans IDE and Yii projects

Comparing #38 with #39

Revision #39 was created by marcovtwout marcovtwout on Mar 4, 2015, 11:16:51 AM.

Updated testing instructions for latest NetBeans

Content

[...]
## 3. 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](https://www.phpunit.de/manual/3.6current/en/installation.html). - Open "Tools > Options > PHP > Unit TestingFrameworks & Tools -> PHPUnit" and set the correct path to the launch script. This is phpunit.bat in Windows and usually /usr/bin/phpunit in Linux.
- Install SeleniumRC with one of these two methods:
- Through NetBeans plugins (may be outdated):
[...]
- Download and execute ["Selenium Server"](http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar)
- Configure project options
- Open "File > Project properties >
Sources" and set "Test FTesting":
 
     - Add f
older" to \[PROJECT ROOT\]/protected/tests      - Enable testing provider "PHPUnit"
 
- Open "File > Project properties > PHPUnit" and sTesting > PHPUnit":
 
     - S
et "Use Bootstrap" to \[PROJECT ROOT\]/protected/tests/bootstrap.php, and
 
     - Set
"Use XML Configuration" to \[PROJECT ROOT\]/protected/tests/phpunit.xml

#### Usage:

- Test whole project: Alt+F6
- Test single file: Shift-F6
[...]