set_up(); } /** * Performs assertions shared by all tests of a test case. * * This method is called before the execution of a test starts and after setUp() is called. * * @return void */ protected function assertPreConditions() { parent::assertPreConditions(); $this->assert_pre_conditions(); } /** * Performs assertions shared by all tests of a test case. * * This method is called before the execution of a test ends and before tearDown() is called. * * @return void */ protected function assertPostConditions() { parent::assertPostConditions(); $this->assert_post_conditions(); } /** * Tears down the fixture, for example, close a network connection. * * This method is called after each test. * * @return void */ protected function tearDown() { $this->tear_down(); parent::tearDown(); } /** * This method is called after the last test of this test class is run. * * @codeCoverageIgnore * * @return void */ public static function tearDownAfterClass() { static::tear_down_after_class(); parent::tearDownAfterClass(); } /** * This method is called before the first test of this test class is run. * * @return void */ public static function set_up_before_class() {} /** * Sets up the fixture, for example, open a network connection. * * This method is called before each test. * * @return void */ protected function set_up() {} /** * Performs assertions shared by all tests of a test case. * * This method is called before the execution of a test starts and after set_up() is called. * * @return void */ protected function assert_pre_conditions() {} /** * Performs assertions shared by all tests of a test case. * * This method is called before the execution of a test ends and before tear_down() is called. * * @return void */ protected function assert_post_conditions() {} /** * Tears down the fixture, for example, close a network connection. * * This method is called after each test. * * @return void */ protected function tear_down() {} /** * This method is called after the last test of this test class is run. * * @return void */ public static function tear_down_after_class() {} }