mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Moved test control files into sapphire/testing, so that sapphire/tests can be ignored by the documentor.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@47797 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8eae0dc7a3
commit
05050e3f2c
@ -44,11 +44,15 @@ foreach($paths as $path) {
|
||||
|
||||
if($hasPhpUnit) {
|
||||
|
||||
/**
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* @package sapphire
|
||||
* @subpackage testing
|
||||
*/
|
||||
class SapphireTest extends PHPUnit_Framework_TestCase {
|
||||
function setUp() {
|
||||
@ -171,6 +175,11 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
} else {
|
||||
// Stub
|
||||
/**
|
||||
* @ignore
|
||||
* @package sapphire
|
||||
* @subpackage testing
|
||||
*/
|
||||
class SapphireTest extends Object {}
|
||||
}
|
||||
|
@ -70,6 +70,8 @@ class TestRunner extends Controller {
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
* @package sapphire
|
||||
* @subpackage testing
|
||||
*/
|
||||
class TestRunner extends Controller {
|
||||
function index() {
|
||||
@ -77,4 +79,17 @@ class TestRunner extends Controller {
|
||||
}
|
||||
}
|
||||
|
||||
// This class is here to help with documentation.
|
||||
|
||||
/**
|
||||
* PHPUnit is a testing framework that can be installed using PEAR.
|
||||
* It's not bundled with Sapphire, you will need to install it yourself.
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage testing
|
||||
*/
|
||||
class PHPUnit_Framework_TestCase {
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -6,6 +6,7 @@
|
||||
|
||||
/**
|
||||
* Tests for DataObject
|
||||
* @package tests
|
||||
*/
|
||||
class DataObjectTest extends SapphireTest {
|
||||
static $fixture_file = 'sapphire/tests/DataObjectTest.yml';
|
||||
|
Loading…
Reference in New Issue
Block a user