~jsitech/jackthestripper/jts.debian8

« back to all changes in this revision

Viewing changes to phpunit-patched/Tests/_files/ExceptionInAssertPostConditionsTest.php

  • Committer: Jason Soto
  • Date: 2015-06-21 13:57:00 UTC
  • Revision ID: jsitech@localhost.localdomain-20150621135700-6i5sw2i59k2gz0o2
Inicialización Repo

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
class ExceptionInAssertPostConditionsTest 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
        throw new Exception;
 
29
    }
 
30
 
 
31
    protected function tearDown()
 
32
    {
 
33
        $this->tearDown = TRUE;
 
34
    }
 
35
}