public function Framework_TestCaseTest::testExceptionInAssertPreConditions

File

drupal/core/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php, line 136

Class

Framework_TestCaseTest
@package PHPUnit @author Sebastian Bergmann <sebastian@phpunit.de> @copyright 2001-2013 Sebastian Bergmann <sebastian@phpunit.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @link …

Code

public function testExceptionInAssertPreConditions() {
  $test = new ExceptionInAssertPreConditionsTest('testSomething');
  $result = $test
    ->run();
  $this
    ->assertTrue($test->setUp);
  $this
    ->assertTrue($test->assertPreConditions);
  $this
    ->assertFalse($test->testSomething);
  $this
    ->assertFalse($test->assertPostConditions);
  $this
    ->assertTrue($test->tearDown);
}