Antoine Musso <[email protected]> wrote:

>> I recently updated packages via PEAR. I don't remember what exactly,
>> but right now I have
>> PHPUnit-3.6.12
>> PHP_Invoker-1.1.1

>> When I try to run tests for Translate I get:
>> 1) SpecialPagesTest::testSpecialPage with data set #3 ('LanguageStats')

>> Fatal error: Call to undefined function php_timer_autoload() in
>> /usr/share/php/PHPUnit/Util/GlobalState.php on line 381
>> make: *** [default] Error 255

> Could you paste all your versions obtained with:

>  pear list -c phpunit

> php_timer_autoload() was defined in PHP_Timer 1.0.3 apparently and got
> removed in 1.0.4.  It seems PHPUnit 3.6 still rely on it so either you
> have to downgrade PHP_Timer to 1.0.3 or possibly 1.0.2 or upgrade
> PHPUnit to 3.7.x (recommended).

All of this shouldn't be necessary, as PHPUnit 3.6.12's
package.xml clearly declares a dependency on PHP_Timer
>= 1.0.1 and <= 1.0.3.  In other words: Whatever Niklas used
for update seems to be broken and should be fixed.

  It's not so hard to make PHPUnit 3.6.12 work with all ver-
sions of PHP_Timer though; a patch is at
http://pkgs.fedoraproject.org/cgit/php-phpunit-PHPUnit.git/commit/?h=f16&id=ae69e72b38abf143585449d28d92fb306317e14d.

Tim


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to