Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / _files / ExceptionInTearDownTest.php
1 <?php
2 class ExceptionInTearDownTest extends PHPUnit_Framework_TestCase
3 {
4     public $setUp                = false;
5     public $assertPreConditions  = false;
6     public $assertPostConditions = false;
7     public $tearDown             = false;
8     public $testSomething        = false;
9
10     protected function setUp()
11     {
12         $this->setUp = true;
13     }
14
15     protected function assertPreConditions()
16     {
17         $this->assertPreConditions = true;
18     }
19
20     public function testSomething()
21     {
22         $this->testSomething = true;
23     }
24
25     protected function assertPostConditions()
26     {
27         $this->assertPostConditions = true;
28     }
29
30     protected function tearDown()
31     {
32         $this->tearDown = true;
33         throw new Exception;
34     }
35 }