mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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) {
|
if($hasPhpUnit) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
require_once 'PHPUnit/Framework.php';
|
require_once 'PHPUnit/Framework.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage testing
|
||||||
*/
|
*/
|
||||||
class SapphireTest extends PHPUnit_Framework_TestCase {
|
class SapphireTest extends PHPUnit_Framework_TestCase {
|
||||||
function setUp() {
|
function setUp() {
|
||||||
@ -171,6 +175,11 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Stub
|
// Stub
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage testing
|
||||||
|
*/
|
||||||
class SapphireTest extends Object {}
|
class SapphireTest extends Object {}
|
||||||
}
|
}
|
||||||
|
|
@ -70,6 +70,8 @@ class TestRunner extends Controller {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
|
* @package sapphire
|
||||||
|
* @subpackage testing
|
||||||
*/
|
*/
|
||||||
class TestRunner extends Controller {
|
class TestRunner extends Controller {
|
||||||
function index() {
|
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
|
* Tests for DataObject
|
||||||
|
* @package tests
|
||||||
*/
|
*/
|
||||||
class DataObjectTest extends SapphireTest {
|
class DataObjectTest extends SapphireTest {
|
||||||
static $fixture_file = 'sapphire/tests/DataObjectTest.yml';
|
static $fixture_file = 'sapphire/tests/DataObjectTest.yml';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user