Easy Code Navigation
Use the navigator window or the Go To Type, Go To File, Go To Symbol, Go To Declaration, Find
Usages menu items for easy code navigation in large projects.
The editor warns about potential code problems by flagging them and
giving an hint in a pop-up. A tasks window lists all warnings in the project,
making it easy to find and resolve problems.
Code Coverage
Generate a Code Coverage report for PHP files
to see how well your test cases cover your code:
Covered statements are marked green in the editor, statements that
haven't been executed during the test are marked red.
The evaluation is based on the number of executable statements,
lines with white space and comments do not distort the result.
PHP Unit Testing
Create PHPUnit tests and Selenium test cases
for files or folders, run tests, and view test results.
In the PHPUnit properties you can define a custom XML configuration file,
a bootstrap file for command line options, or
a custom test suite, or you can let the IDE generate skeleton code for you.
Use a keyboard shortcut to navigate quickly between test and tested class.
Testing
with PHPUnit and Selenium
PHP Debugging
Debug PHP code using Xdebug: You can inspect local variables, set watches,
set breakpoints, and evaluate code live.
Navigate to declarations, types and files using Go To shortcuts and hypertext links.
Use a global PHP include path for all projects or customize it per project.
The NetBeans IDE for PHP also offers command-line debugging: The PHP
program output appears in a command line display in the IDE itself and you
can inspect the generated HTML without having to switch to a browser.
You can debug scripts and web pages, either locally or remotely.
The NetBeans PHP debugger integration allows you
to map server paths to local paths to enable remote debugging.
Remote and Local Project Development
PHP projects can easily be deployed from within NetBeans IDE for testing
to local or remote servers via FTP or SFTP,
or by the use of an upload script for more complex deployments.
You can easily create a new project from remote sources,
and the IDE will upload your changes automatically when you save a file.
Run the project as a local web site, as a command
line script, or as a remote web application via FTP or SFTP.
MySQL Integration
PHP developers can also look forward to working with MySQL. The Insert Code
command provides a Database Table option that creates the code needed to execute
a SELECT statement in MySQL. Open a window to make changes to MySQL tables,
select individual table cells with the mouse, and edit them directly.
|