Difference between #38 and #39 of
NetBeans IDE and Yii projects

Revision #39 has been created by marcovtwout on Mar 4, 2015, 11:16:51 AM with the memo:

Updated testing instructions for latest NetBeans
« previous (#38)

Changes

Title unchanged

NetBeans IDE and Yii projects

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

IDE, Selenium, PHPUnit, XDebug, NetBeans

Content changed

[...]
## 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
[...]
65 0
66 followers
Viewed: 251 994 times
Version: 1.1
Category: Tutorials
Written by: marcovtwout
Last updated by: marcovtwout
Created on: Sep 21, 2010
Last updated: 9 years ago
Update Article

Revisions

View all history