23576 Posts in 19403 Topics by 2893 members
|Go to End|
29 October 2010 at 4:20am
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?
29 October 2010 at 4:32am
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.
7 November 2010 at 2:24am
You are my hero man!
Thanks a lot
8 November 2010 at 11:30am Last edited: 8 November 2010 11:30am
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.
|Go to Top|