[dev] PHPUnit 3.6 breaks unit tests

Jan Schneider jan at horde.org
Tue Nov 8 19:56:22 UTC 2011


Zitat von Michael M Slusarz <slusarz at horde.org>:

> Quoting Michael M Slusarz <slusarz at horde.org>:
>
>> Quoting Michael M Slusarz <slusarz at horde.org>:
>>
>>> So something obviously changed between 3.5 -> 3.6.  And yes, I was  
>>> also hoping Gunnar could weigh in on this :)  I looked at the  
>>> phpunit changelog, but nothing really stuck out - wondering if it  
>>> is some kind of setting we need to add the phpunit.xml files to  
>>> get this to work.
>>
>> Nevermind - saw your commit indicating that 3.6 is BC-incompatible  
>> with the way we build our test environment.  I've reverted back to  
>> 3.5.15.
>
> FYI: It is impossible (at least for me) to downgrade to 3.5 because  
> of a broken dependency on DbUnit (which requires 3.6).  So here's  
> how i fixed:
>
> 1) Installed PHPUnit (which installs 3.6.2)
> 2) pear upgrade -f phpunit/phpunit-3.5.15
> 3) pear upgrade -f phpunit/php_codecoverage-1.0.5
> 4) pear upgrade -f phpunit/file_iterator-1.2.6

https://github.com/sebastianbergmann/phpunit/issues/390#issuecomment-2590452

> Sort of tremendously annoying.

Indeed. But partially our fault too:  
https://twitter.com/#!/s_bergmann/status/133870181385646082
He still shouldn't have broken BC in a minor release, but that's a  
different story.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list