You are here

public function Framework_SuiteTest::testBeforeAnnotation in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/tests/Framework/SuiteTest.php \Framework_SuiteTest::testBeforeAnnotation()

File

vendor/phpunit/phpunit/tests/Framework/SuiteTest.php, line 172

Class

Framework_SuiteTest
@since Class available since Release 2.0.0 @covers PHPUnit_Framework_TestSuite

Code

public function testBeforeAnnotation() {
  $test = new PHPUnit_Framework_TestSuite('BeforeAndAfterTest');
  BeforeAndAfterTest::resetProperties();
  $result = $test
    ->run();
  $this
    ->assertEquals(2, BeforeAndAfterTest::$beforeWasRun);
  $this
    ->assertEquals(2, BeforeAndAfterTest::$afterWasRun);
}