You are here

BeforeAndAfterTest.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/_files/BeforeAndAfterTest.php

File

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

class BeforeAndAfterTest extends PHPUnit_Framework_TestCase {
  public static $beforeWasRun;
  public static $afterWasRun;
  public static function resetProperties() {
    self::$beforeWasRun = 0;
    self::$afterWasRun = 0;
  }

  /**
   * @before
   */
  public function initialSetup() {
    self::$beforeWasRun++;
  }

  /**
   * @after
   */
  public function finalTeardown() {
    self::$afterWasRun++;
  }
  public function test1() {
  }
  public function test2() {
  }

}

Classes

Namesort descending Description
BeforeAndAfterTest