PHPUnit 3.0 Beta 1

Sebastian Bergmann » 09 October 2006 » in Announcements » 9 Comments

Now that Derick has released the first release candidate of Xdebug 2 it is time for me to release a first beta version of PHPUnit 3.0.

A list of features is available as well as a list of changes. You can install PHPUnit using the PEAR Installer as shown below:
pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit-beta
Note that previous installations of the PHPUnit and PHPUnit2 packages from the pear.php.net channel have to be uninstalled.

The PHPUnit Pocket Guide, which is the official documentation for PHPUnit, shows how to write tests and how to run tests to get you started.

Example reports generated by the new Code Coverage Report Generator are available for the eZ components as well as the Zend Framework.

Happy testing!
Defined tags for this entry: , , ,

Trackback specific URI for this entry

9 Comments to "PHPUnit 3.0 Beta 1"

Display comments as (Linear | Threaded)
  1. Tobias Olry
    09/10/2006 at 16:23 Permalink
    Hi there,

    I do have a project version controlled by svn. PHPUnit is included via svn:externals using svn://phpunit.de-Repository.

    Is that repository up to date? Recently the "trunk" disappeared, was that on purpose?

    Keep up the great work!

    thx,
    Tobias

    Reply

  2. Sebastian Bergmann
    09/10/2006 at 16:27 Permalink
    Yes, that was on purpose. See http://www.phpunit.de/changeset/260.

    Reply

  3. John Alexander
    09/10/2006 at 20:21 Permalink
    Hi - has --report been removed or renamed? I get "unrecognized option --report" if I try, and it doesnt appear anymore in --help. Any idea what's going on?

    -John

    Reply

  4. Sebastian Bergmann
    09/10/2006 at 20:30 Permalink
    You need to have Xdebug installed for the --report parameter to be available.

    Reply

  5. John Alexander
    09/10/2006 at 23:50 Permalink
    I do - or at least I think I do. XDebug does appear in phpinfo(), I'm using version 2.0.0beta6. Is 2.0.0RC1 a requirement for 3.0beta1?

    - John

    Reply

  6. Sebastian Bergmann
    10/10/2006 at 06:56 Permalink
    Yes, Xdebug 2.0.0 RC1 is required. But PHPUnit only checks extension_loaded('xdebug') so you should see the --report parameter.

    Reply

  7. zeek
    25/02/2007 at 15:23 Permalink
    I have installed Xdebug 2.0.0RC3 with extension=php_xdebug.dll and zend_extension_ts="pathto\php_xdebug.dll" but neither of them give me the option --report.
    What I have to do to get it work?

    Reply

  8. Kezug
    04/08/2007 at 19:10 Permalink
    today is August 2007 - so response is a little be late, but maybe somebody would need it. Try, to enable xdebug in php.ini for cli not only for http server

    Reply

  9. Daniela Waranie
    08/08/2008 at 12:58 Permalink
    CLI is under section APC in the php.ini:
    zend_extension = "...."
    (without "_tx" at the end)

    Reply

0 Trackbacks to "PHPUnit 3.0 Beta 1"

  1. No Trackbacks

Add Comment


To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Submitted comments will be subject to moderation before being displayed.