You are here

BeforeClassAndAfterClassTest.php in Zircon Profile 8

File

vendor/phpunit/phpunit/tests/_files/BeforeClassAndAfterClassTest.php
View source
<?php

class BeforeClassAndAfterClassTest extends PHPUnit_Framework_TestCase {
  public static $beforeClassWasRun = 0;
  public static $afterClassWasRun = 0;
  public static function resetProperties() {
    self::$beforeClassWasRun = 0;
    self::$afterClassWasRun = 0;
  }

  /**
   * @beforeClass
   */
  public static function initialClassSetup() {
    self::$beforeClassWasRun++;
  }

  /**
   * @afterClass
   */
  public static function finalClassTeardown() {
    self::$afterClassWasRun++;
  }
  public function test1() {
  }
  public function test2() {
  }

}

Classes