Webylon 3.1 API Docs
  • Package
  • Class
  • Tree
  • Deprecated
  • Download
Version: current
  • 3.2
  • 3.1

Packages

  • auth
  • Booking
  • cart
    • shipping
    • steppedcheckout
  • Catalog
  • cms
    • assets
    • batchaction
    • batchactions
    • bulkloading
    • comments
    • content
    • core
    • export
    • newsletter
    • publishers
    • reports
    • security
    • tasks
  • Dashboard
  • DataObjectManager
  • event
  • faq
  • forms
    • actions
    • core
    • fields-basic
    • fields-dataless
    • fields-datetime
    • fields-files
    • fields-formatted
    • fields-formattedinput
    • fields-relational
    • fields-structural
    • transformations
    • validators
  • googlesitemaps
  • guestbook
  • installer
  • newsletter
  • None
  • photo
    • gallery
  • PHP
  • polls
  • recaptcha
  • sapphire
    • api
    • bulkloading
    • control
    • core
    • cron
    • dev
    • email
    • fields-formattedinput
    • filesystem
    • formatters
    • forms
    • i18n
    • integration
    • misc
    • model
    • parsers
    • search
    • security
    • tasks
    • testing
    • tools
    • validation
    • view
    • widgets
  • seo
    • open
      • graph
  • sfDateTimePlugin
  • spamprotection
  • stealth
    • captha
  • subsites
  • userform
    • pagetypes
  • userforms
  • webylon
  • widgets

Classes

  • CliTestReporter
  • FunctionalTest
  • InstallerTest
  • JSTestRunner
  • PHPUnit_Framework_TestCase
  • SapphireTest
  • SapphireTestReporter
  • SapphireTestSuite
  • TestRunner
  • TestSession
  • TestSession_STResponseWrapper
  • TestViewer

Interfaces

  • TestOnly

Functions

  • hasPhpUnit
 1 <?php
 2 /**
 3  * Light wrapper around {@link PHPUnit_Framework_TestSuite}
 4  * which allows to have {@link setUp()} and {@link tearDown()}
 5  * methods which are called just once per suite, not once per
 6  * test method in each suite/case.
 7  * 
 8  * @package sapphire
 9  * @subpackage testing
10  */
11 
12 require_once 'PHPUnit/Framework/Test.php';
13 require_once 'PHPUnit/Framework/SelfDescribing.php';
14 require_once 'PHPUnit/Framework/TestSuite.php';
15 
16 class SapphireTestSuite extends PHPUnit_Framework_TestSuite {
17     function setUp() {
18         foreach($this->groups as $group) {
19             if($group[0] instanceof SapphireTest) $group[0]->setUpOnce();
20         }
21     }
22     
23     function tearDown() {
24         foreach($this->groups as $group) {
25             if($group[0] instanceof SapphireTest) $group[0]->tearDownOnce();
26         }
27     }
28 }
29 ?>
[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. -
Webylon 3.1 API Docs API documentation generated by ApiGen 2.8.0