Version: current

# Package sapphire\testing

## Classes summary

CliTestReporter | Test reporter optimised for CLI (ie, plain-text) output
FunctionalTest | Sapphire-specific testing object designed to support functional testing of your web app. It simulates get/post requests, form submission, and can validate resulting HTML, looking up content by CSS selector.
InstallerTest | Simple controller that the installer uses to test that URL rewriting is working.
JSTestRunner | Controller that executes QUnit tests via jQuery. Finds all htm/html files located in <yourmodule>/javascript/tests and includes them as iFrames.
PHPUnit_Framework_TestCase | PHPUnit is a testing framework that can be installed using PEAR. It's not bundled with Sapphire, you will need to install it yourself.
SapphireTest | 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.
SapphireTestReporter | Gathers details about PHPUnit2 test suites as they are been executed. This does not actually format any output but simply gathers extended information about the overall results of all suites & their tests for use elsewhere.
SapphireTestSuite | Light wrapper around PHPUnit_Framework_TestSuite which allows to have `SapphireTestSuite::setUp()` and `SapphireTestSuite::tearDown()` methods which are called just once per suite, not once per test method in each suite/case.
TestRunner | Controller that executes PHPUnit tests.
TestSession | Represents a test usage session of a web-app It will maintain session-state from request to request
TestSession_STResponseWrapper | Wrapper around SS_HTTPResponse to make it look like a SimpleHTTPResposne
TestViewer | Allows human reading of a test in a format suitable for agile documentation

## Interfaces summary

TestOnly | Classes that implement TestOnly are only to be used during testing

## Functions summary

hasPhpUnit |

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -