| @@ 34-40 (lines=7) @@ | ||
| 31 | * @return TestCase|\PHPUnit_Framework_TestCase|object |
|
| 32 | * @throws ReflectionException |
|
| 33 | */ |
|
| 34 | function setUpTestCase($testCase) |
|
| 35 | { |
|
| 36 | $reflection = new ReflectionMethod(get_class($testCase), 'setUp'); |
|
| 37 | $reflection->setAccessible(true); |
|
| 38 | $reflection->invoke($testCase); |
|
| 39 | return $testCase; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @param TestCase|\PHPUnit_Framework_TestCase|object $testCase |
|
| @@ 47-53 (lines=7) @@ | ||
| 44 | * @return TestCase|\PHPUnit_Framework_TestCase|object |
|
| 45 | * @throws ReflectionException |
|
| 46 | */ |
|
| 47 | function tearDownTestCase($testCase) |
|
| 48 | { |
|
| 49 | $reflection = new ReflectionMethod(get_class($testCase), 'tearDown'); |
|
| 50 | $reflection->setAccessible(true); |
|
| 51 | $reflection->invoke($testCase); |
|
| 52 | return $testCase; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Application factory |
|