~ballot/wordpress/openstack-objectstorage-breaking-insight

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit/tests/_files/ExceptionInSetUpTest.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
class ExceptionInSetUpTest 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
        throw new Exception;
 
14
    }
 
15
 
 
16
    protected function assertPreConditions()
 
17
    {
 
18
        $this->assertPreConditions = true;
 
19
    }
 
20
 
 
21
    public function testSomething()
 
22
    {
 
23
        $this->testSomething = true;
 
24
    }
 
25
 
 
26
    protected function assertPostConditions()
 
27
    {
 
28
        $this->assertPostConditions = true;
 
29
    }
 
30
 
 
31
    protected function tearDown()
 
32
    {
 
33
        $this->tearDown = true;
 
34
    }
 
35
}