| @@ 266-275 (lines=10) @@ | ||
| 263 | ); |
|
| 264 | } |
|
| 265 | ||
| 266 | public function testNoException() |
|
| 267 | { |
|
| 268 | $test = new ThrowNoExceptionTestCase('test'); |
|
| 269 | $test->setExpectedException('RuntimeException'); |
|
| 270 | ||
| 271 | $result = $test->run(); |
|
| 272 | ||
| 273 | $this->assertEquals(1, $result->failureCount()); |
|
| 274 | $this->assertEquals(1, count($result)); |
|
| 275 | } |
|
| 276 | ||
| 277 | public function testWrongException() |
|
| 278 | { |
|
| @@ 277-286 (lines=10) @@ | ||
| 274 | $this->assertEquals(1, count($result)); |
|
| 275 | } |
|
| 276 | ||
| 277 | public function testWrongException() |
|
| 278 | { |
|
| 279 | $test = new ThrowExceptionTestCase('test'); |
|
| 280 | $test->setExpectedException('InvalidArgumentException'); |
|
| 281 | ||
| 282 | $result = $test->run(); |
|
| 283 | ||
| 284 | $this->assertEquals(1, $result->failureCount()); |
|
| 285 | $this->assertEquals(1, count($result)); |
|
| 286 | } |
|
| 287 | ||
| 288 | /** |
|
| 289 | * @backupGlobals enabled |
|