PHPUnit 3.3.6

Sebastian Bergmann » 13 December 2008 » in Announcements » 2 Comments

  • Implemented #636: clearstatcache() after setUp() and before test. [4174]
  • Fixed #500: Bump requirement for PEAR package to version 1.7.1. [4198]
  • Fixed #612: Bootstrap file is not included before including test files. [4228]
  • Fixed #628: Mocked static methods cause fatal errors. [4144]
  • Fixed #629: @expectedException does not work with the new namespace separator. [4140]
Defined tags for this entry: ,

Trackback specific URI for this entry

2 Comments to "PHPUnit 3.3.6"

Display comments as (Linear | Threaded)
  1. Kevin Z
    14/12/2008 at 00:39 Permalink
    Hi SB,

    I just downloaded 3.3.6, and found my unit test broken with it (it was ok with 3.3.5).

    After dig into it a little bit, and i found a change in addTestMethod() PHPUnit/Framework/TestSuite.php, cause the problem. Now it is using the ReflectionMethod::getDeclaringClass() to determine the class name.

    But in my case, i have abstract test class to define some common test case for all sub test class. Now getDeclaringClass() is return my abstract class, not the test class, and it's not isInstantiable().

    I think it's a bug. How do you think ?

    Kevin

    Reply

  2. Sebastian Bergmann
    14/12/2008 at 04:57 Permalink
    I will look into it. In the future, please report bugs using the issue tracker instead of on this blog. Thanks!

    Reply

0 Trackbacks to "PHPUnit 3.3.6"

  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.