BUGFIX Add PHPUnit includes to SapphireTest class (can be loaded outside of TestRunner for static calls, in which case the PHPUnit autoloaders/includes aren't in place yet)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@113156 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-27 19:59:38 +00:00
parent e531379b13
commit 46dcd20e34

View File

@ -1,6 +1,8 @@
<?php <?php
require_once 'TestRunner.php'; require_once 'TestRunner.php';
PhpUnitWrapper::inst()->init();
/** /**
* Test case class for the Sapphire framework. * Test case class for the Sapphire framework.
* Sapphire unit testing is based on PHPUnit, but provides a number of hooks into our data model that make it easier to work with. * Sapphire unit testing is based on PHPUnit, but provides a number of hooks into our data model that make it easier to work with.