You are here

ExceptionInTearDownTest.php in Zircon Profile 8

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

File

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

class ExceptionInTearDownTest extends PHPUnit_Framework_TestCase {
  public $setUp = false;
  public $assertPreConditions = false;
  public $assertPostConditions = false;
  public $tearDown = false;
  public $testSomething = false;
  protected function setUp() {
    $this->setUp = true;
  }
  protected function assertPreConditions() {
    $this->assertPreConditions = true;
  }
  public function testSomething() {
    $this->testSomething = true;
  }
  protected function assertPostConditions() {
    $this->assertPostConditions = true;
  }
  protected function tearDown() {
    $this->tearDown = true;
    throw new Exception();
  }

}

Classes