ExceptionInAssertPreConditionsTest.php

File

drupal/core/vendor/phpunit/phpunit/Tests/_files/ExceptionInAssertPreConditionsTest.php
View source
<?php

class ExceptionInAssertPreConditionsTest 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;
    throw new Exception();
  }
  public function testSomething() {
    $this->testSomething = TRUE;
  }
  protected function assertPostConditions() {
    $this->assertPostConditions = TRUE;
  }
  protected function tearDown() {
    $this->tearDown = TRUE;
  }

}

Classes