|
@@ 107-117 (lines=11) @@
|
| 104 |
|
$this->assertEquals(1, count($result)); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
public function testExceptionInSetUp() |
| 108 |
|
{ |
| 109 |
|
$test = new ExceptionInSetUpTest('testSomething'); |
| 110 |
|
$result = $test->run(); |
| 111 |
|
|
| 112 |
|
$this->assertTrue($test->setUp); |
| 113 |
|
$this->assertFalse($test->assertPreConditions); |
| 114 |
|
$this->assertFalse($test->testSomething); |
| 115 |
|
$this->assertFalse($test->assertPostConditions); |
| 116 |
|
$this->assertTrue($test->tearDown); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
public function testExceptionInAssertPreConditions() |
| 120 |
|
{ |
|
@@ 119-129 (lines=11) @@
|
| 116 |
|
$this->assertTrue($test->tearDown); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
public function testExceptionInAssertPreConditions() |
| 120 |
|
{ |
| 121 |
|
$test = new ExceptionInAssertPreConditionsTest('testSomething'); |
| 122 |
|
$result = $test->run(); |
| 123 |
|
|
| 124 |
|
$this->assertTrue($test->setUp); |
| 125 |
|
$this->assertTrue($test->assertPreConditions); |
| 126 |
|
$this->assertFalse($test->testSomething); |
| 127 |
|
$this->assertFalse($test->assertPostConditions); |
| 128 |
|
$this->assertTrue($test->tearDown); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
public function testExceptionInTest() |
| 132 |
|
{ |
|
@@ 131-141 (lines=11) @@
|
| 128 |
|
$this->assertTrue($test->tearDown); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
public function testExceptionInTest() |
| 132 |
|
{ |
| 133 |
|
$test = new ExceptionInTest('testSomething'); |
| 134 |
|
$result = $test->run(); |
| 135 |
|
|
| 136 |
|
$this->assertTrue($test->setUp); |
| 137 |
|
$this->assertTrue($test->assertPreConditions); |
| 138 |
|
$this->assertTrue($test->testSomething); |
| 139 |
|
$this->assertFalse($test->assertPostConditions); |
| 140 |
|
$this->assertTrue($test->tearDown); |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
public function testExceptionInAssertPostConditions() |
| 144 |
|
{ |
|
@@ 143-153 (lines=11) @@
|
| 140 |
|
$this->assertTrue($test->tearDown); |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
public function testExceptionInAssertPostConditions() |
| 144 |
|
{ |
| 145 |
|
$test = new ExceptionInAssertPostConditionsTest('testSomething'); |
| 146 |
|
$result = $test->run(); |
| 147 |
|
|
| 148 |
|
$this->assertTrue($test->setUp); |
| 149 |
|
$this->assertTrue($test->assertPreConditions); |
| 150 |
|
$this->assertTrue($test->testSomething); |
| 151 |
|
$this->assertTrue($test->assertPostConditions); |
| 152 |
|
$this->assertTrue($test->tearDown); |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
public function testExceptionInTearDown() |
| 156 |
|
{ |
|
@@ 155-165 (lines=11) @@
|
| 152 |
|
$this->assertTrue($test->tearDown); |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
public function testExceptionInTearDown() |
| 156 |
|
{ |
| 157 |
|
$test = new ExceptionInTearDownTest('testSomething'); |
| 158 |
|
$result = $test->run(); |
| 159 |
|
|
| 160 |
|
$this->assertTrue($test->setUp); |
| 161 |
|
$this->assertTrue($test->assertPreConditions); |
| 162 |
|
$this->assertTrue($test->testSomething); |
| 163 |
|
$this->assertTrue($test->assertPostConditions); |
| 164 |
|
$this->assertTrue($test->tearDown); |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
public function testNoArgTestCasePasses() |
| 168 |
|
{ |