On 26 October 2012 15:02, Tim Landscheidt <[email protected]> wrote:
> 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

twn:~$ pear list -c phpunit
Installed packages, channel pear.phpunit.de:
============================================
Package            Version State
DbUnit             1.1.2   stable
File_Iterator      1.3.2   stable
PHPUnit            3.6.12  stable
PHPUnit_MockObject 1.1.1   stable
PHP_CodeCoverage   1.1.2   stable
PHP_Invoker        1.1.1   stable
PHP_Timer          1.0.4   stable
PHP_TokenStream    1.1.5   stable
Text_Template      1.1.2   stable

>
>> 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).

3.7.x is not marked stable, can I install it just by specifying version number?

> 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.

Not too clearly apparently, I had this when installing invoker:

sudo pear install phpunit/PHP_Invoker
phpunit/phpunit requires package "phpunit/PHP_Invoker" (version >=
1.1.0, version <= 1.1.1), downloaded version is 1.1.2

Then I installed version 1.1.1.

  -Niklas

-- 
Niklas Laxström

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

Reply via email to