[horde] horde-git test_framework PHP Fatal error

Jan Schneider jan at horde.org
Tue Sep 14 09:28:53 UTC 2010


Please don't top-post.

Zitat von Gerard Breiner <gerard.breiner at ias.u-psud.fr>:

> -----Message d'origine-----
> De : horde-bounces at lists.horde.org [mailto:horde-bounces at lists.horde.org] De
> la part de Jan Schneider
> Envoyé : lundi 13 septembre 2010 16:37
> À : horde at lists.horde.org
> Objet : Re: [horde] horde-git test_framework PHP Fatal error
>
> Zitat von Gerard Breiner <gerard.breiner at ias.u-psud.fr>:
>
>> Hello,
>>
>> My plateform is Horde-git (horde4) Debian Lenny.
>>
>> http://horde_server/test.php works very fine. All is ok.
>> After that I want to run test_framework .
>> php framework/bin/test_framework return :
>>
>> PHP Fatal error:  Class Horde_View_Helper_UrlTest_MockController
>> contains 1 abstract method and must therefore be declared abstract
>> or implement the remaining methods
>> (Horde_Controller::processRequest) in
>> /www/horde-git/framework/View/test/Horde/View/Helper/UrlTest.php on
>> line 131
>>
>> I added "abstract" at the begining of the line 131
>> abstract class Horde_View_Helper_UrlTest_MockController extends
>> Horde_Controller_Base
>
> Fixed.
>
>> I run again php test_framework and get:
>>
>> PHP Strict Standards:  Declaration of Horde_Db_AllTests::main()
>> should be compatible with that of Horde_Test_AllTests::main() in
>> /www/horde-git/framework/Db/test/Horde/Db/AllTests.php on line 86
>
> Fixed.
>
> Many thanks Jan! However I ran again test_framework and got :
>
> No configuration for mysql test
> PHP Parse error:  syntax error, unexpected T_FUNCTION, expecting ')' in
> /www/horde-git/framework/Injector/test/Horde/Injector/Binder/ClosureTest.php
> on line 14

This test is testing closures which have been added in PHP 5.3. I'm  
not sure how to skip that test with php 5.2 *before* loading the file.

Jan.

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



More information about the horde mailing list