PHPUnit 3.3.6
- 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]
14/12/2008 at 00:39 Permalink
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
14/12/2008 at 04:57 Permalink
Reply