Environment and development tools: Difference between revisions

Jump to navigation Jump to search
m
Line 104: Line 104:


* Then to analyze files generated by XDebug profiling, you can install KCacheGrind (Linux) or WinCacheGrind (Windows).
* Then to analyze files generated by XDebug profiling, you can install KCacheGrind (Linux) or WinCacheGrind (Windows).
== To develop or use PHPUnit test ==
* Download a release archive from http://pear.phpunit.de/get/ and extract it to a directory that is listed in the include_path of your php.ini configuration file.
* Prepare the phpunit script:
** Rename the phpunit.php script to phpunit.
** Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).
** Copy it to a directory that is in your path and make it executable (chmod +x phpunit).
* Prepare the PHPUnit/Util/PHP.php script:
** Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).


= Setup =
= Setup =

Navigation menu