Advanced PHPUnit Topics

Sebastian Bergmann » 14 September 2007 » in Presentations » 3 Comments

Here is the presentation material I used during my presentation on PHPUnit at php|works 2007 today:

Defined tags for this entry: , , ,

Trackback specific URI for this entry

3 Comments to "Advanced PHPUnit Topics"

Display comments as (Linear | Threaded)
  1. Clark Everetts
    18/09/2007 at 23:58 Permalink
    Hello Sebastian! It was good to see you in Atlanta, and hope to see you again before another year passes. Thanks very much for all your hard work, and even more so for sharing it with the rest of us. Rest assured it is put to good use!

    Reply

  2. Ashton Honnecke
    16/11/2007 at 00:22 Permalink
    Hi Sebastian, I am trying to get into writing tests when I develop php, however, I am running into some issues, and I thought that you might be able to point me in the right direction.

    I have phpunit installed, and I am running it, however, I have some dependecies (like setting the include path and instantiating some singletons) that are set in auto_prepend. How do you recommend that one goes about creating the environment required by the classes that I am trying to test?

    For instance, I want to test CronLogger.php which requires FileLogger.php: require_once('FileLogger.php'), however, the include paths are all set up in the apache autoprepend file so the require in the CronLogger throws a fatal.

    Does phpUnit have something like auto_prepend that allows it to set up the environment for the tests?

    Thanks!
    Ashton

    Reply

  3. Sebastian Bergmann
    16/11/2007 at 08:39 Permalink
    Please ask questions such as this on the mailinglist. Thanks!

    Reply

0 Trackbacks to "Advanced PHPUnit Topics"

  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.