Jump to:

23358 Posts in 17875 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Best version of PHPUnit to use

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1021 Views
  • Mo
    Avatar
    Community Member
    504 Posts

    Best version of PHPUnit to use Link to this post

    Hi All,

    Just installed the latest PHPUnit (3.5.something) on my Mac, there seem to be some issues with how SIlverstripe includes it.

    I get these errors repeatedly:

    [User Notice] Please no longer include "PHPUnit/Framework.php".

    I was wondering what the recommended version is?

    I have tried 3.0.0, but am getting errors like:

    Warning: set_error_handler() expects the argument (PHPUnit_Util_ErrorHandler::handleError) to be a valid callback in /Users/morven/Sites/co/2010-xmas-game/sapphire/dev/SapphireTest.php on line 667

    Does SS work best with pre v3 versions of PHPUnit?

    Cheers,

    Mo

  • Mo
    Avatar
    Community Member
    504 Posts

    Re: Best version of PHPUnit to use Link to this post

    Ok, I have uninstalled and re-installed a load of different versions of PHP unit. It seems that 3.4.x works best.

    I am using 3.4.9 with SS 2.4.1

    Hope that helps someone. Not sure if this the "recommended" version, but seems to work pretty well.

    Mo

  • Ricardona
    Avatar
    Community Member
    26 Posts

    Re: Best version of PHPUnit to use Link to this post

    You are my hero man!

    Thanks a lot

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Best version of PHPUnit to use Link to this post

    PHPUnit 3.5 should work with 2.4.3 once it's released, there were recent changes to support this new version since it's quite different to 3.4.

    PHPUnit 3.4 should work without any problems on 2.4.1, 2.4.2 and 2.4.3 once it's released.

    Thanks,
    Sean

    1021 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.