| 1 | <?php |
||
| 7 | class DynamicFixtureListener extends \PHPUnit_Framework_BaseTestListener |
||
| 8 | { |
||
| 9 | |||
| 10 | private $annotationName; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param string $annotationName |
||
| 14 | */ |
||
| 15 | 4 | public function __construct($annotationName = 'setUpContext') |
|
| 19 | |||
| 20 | /** |
||
| 21 | * A test started. |
||
| 22 | * @param PHPUnit_Framework_Test $test |
||
| 23 | */ |
||
| 24 | 4 | public function startTest(PHPUnit_Framework_Test $test) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param \PHPUnit_Framework_TestCase $testCase |
||
| 34 | */ |
||
| 35 | 4 | private function setUpContext(\PHPUnit_Framework_TestCase $testCase) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @param \PHPUnit_Framework_TestCase $testCase |
||
| 46 | * @param array $methods |
||
| 47 | */ |
||
| 48 | 3 | private function callMethods(\PHPUnit_Framework_TestCase $testCase, array $methods) |
|
| 58 | } |
||
| 59 |