Page MenuHomePhabricator

Update PHPUnit from 3.6.x to 3.7.10
Closed, ResolvedPublic

Description

continuous integration box is still running PHPUnit 3.6.x. We would like to upgrade to the latest stable version which is 3.7.10.

Changelog: https://github.com/sebastianbergmann/phpunit/blob/3.7.10/ChangeLog.md

3.7.10 requires php version 5.3.3, we have 5.3.10 from Ubuntu Precise.

The upgrade path would be:

pear install pear.phpunit.de/phpunit-3.7.10

Dependencies are handled by pear.

I do not expect any trouble since most of us are already running 3.7.x on our local machines.


Version: unspecified
Severity: normal

Details

Reference
bz42724

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:48 AM
bzimport set Reference to bz42724.
bzimport added a subscriber: Unknown Object (MLST).

Added symfony pear channel to get the YAML component:

pear channel-discover pear.symfony.com

Adding Channel "pear.symfony.com" succeeded
Discovery of channel "pear.symfony.com" succeeded
#

Then upgraded PHPUnit

pear install --alldeps phpunit/PHPUnit

phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5)
downloading PHPUnit-3.7.10.tgz ...
Starting to download PHPUnit-3.7.10.tgz (117,079 bytes)
.........................done: 117,079 bytes
downloading File_Iterator-1.3.3.tgz ...
Starting to download File_Iterator-1.3.3.tgz (5,152 bytes)
...done: 5,152 bytes
downloading Text_Template-1.1.4.tgz ...
Starting to download Text_Template-1.1.4.tgz (3,701 bytes)
...done: 3,701 bytes
downloading PHP_CodeCoverage-1.2.7.tgz ...
Starting to download PHP_CodeCoverage-1.2.7.tgz (157,806 bytes)
...done: 157,806 bytes
downloading PHP_Timer-1.0.4.tgz ...
Starting to download PHP_Timer-1.0.4.tgz (3,694 bytes)
...done: 3,694 bytes
downloading PHPUnit_MockObject-1.2.2.tgz ...
Starting to download PHPUnit_MockObject-1.2.2.tgz (20,347 bytes)
...done: 20,347 bytes
downloading Yaml-2.1.4.tgz ...
Starting to download Yaml-2.1.4.tgz (38,574 bytes)
...done: 38,574 bytes
downloading PHP_Invoker-1.1.2.tgz ...
Starting to download PHP_Invoker-1.1.2.tgz (3,705 bytes)
...done: 3,705 bytes
downloading PHP_TokenStream-1.1.5.tgz ...
Starting to download PHP_TokenStream-1.1.5.tgz (9,859 bytes)
...done: 9,859 bytes
install ok: channel://pear.phpunit.de/File_Iterator-1.3.3
install ok: channel://pear.phpunit.de/Text_Template-1.1.4
install ok: channel://pear.phpunit.de/PHP_Timer-1.0.4
install ok: channel://pear.symfony.com/Yaml-2.1.4
install ok: channel://pear.phpunit.de/PHP_TokenStream-1.1.5
install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.2.7
install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.2.2
install ok: channel://pear.phpunit.de/PHP_Invoker-1.1.2
install ok: channel://pear.phpunit.de/PHPUnit-3.7.10
root@gallium:~# phpunit --version
PHPUnit 3.7.10 by Sebastian Bergmann.