[commits] Horde branch master updated. c3b52417695d11fd525bddf76ca5af4918a2342e

Gunnar Wrobel p at rdus.de
Wed Feb 10 08:59:02 UTC 2010


The branch "master" has been updated.
The following is a summary of the commits.

from: a5ac6853fbb3f00bebeeb1fcc31a4f208b52381d

c3b5241 Add the possibility to initialize a test suite with a static init() method rather than using the main() method.

-----------------------------------------------------------------------

commit c3b52417695d11fd525bddf76ca5af4918a2342e
Author: Gunnar Wrobel <wrobel at temple.(none)>
Date:   Wed Feb 10 09:39:29 2010 +0100

    Add the possibility to initialize a test suite with a static init() method
    rather than using the main() method.
    
    It is not sufficient to setup the static AllTests class via the main method.
    This only allows to directly execute the AllTests.php file by parsing it
    with php. Using phpunit is not possible as this will only use the suite()
    method to grab the test suite.
    
    It would still be better to use late static binding here but the added
    method should be enough to allow running the tests in both ways.
    
    The AllTests.php in Kolab_Session demonstrates how to use the init() method.

 framework/Kolab_Session/test/Horde/Kolab/Session/AllTests.php |    4 ++-
 framework/Test/lib/Horde/Test/AllTests.php                    |   14 +++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

http://git.horde.org/diff.php/framework/Kolab_Session/test/Horde/Kolab/Session/AllTests.php?rt=horde-git&r1=1a310b2de34193b3f984e4506d87b32de412a65e&r2=c3b52417695d11fd525bddf76ca5af4918a2342e
http://git.horde.org/diff.php/framework/Test/lib/Horde/Test/AllTests.php?rt=horde-git&r1=67cde545acec46edddfbc239480f193b11bdce93&r2=c3b52417695d11fd525bddf76ca5af4918a2342e




More information about the commits mailing list