| 1 | <?php |
||
| 5 | abstract class TestCaseFactory extends TestFactory |
||
| 6 | { |
||
| 7 | private $testsuite = null; |
||
| 8 | private $category = null; |
||
| 9 | private $subject = null; |
||
| 10 | |||
| 11 | public function __construct($testsuite, $input) |
||
| 21 | |||
| 22 | /* |
||
| 23 | * @return void |
||
| 24 | */ |
||
| 25 | protected function initialize() |
||
| 28 | |||
| 29 | /* |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | private function setTestSuite($testsuite) |
||
| 37 | |||
| 38 | |||
| 39 | /* |
||
| 40 | * @return TestSuite |
||
| 41 | */ |
||
| 42 | public function getTestSuite() |
||
| 47 | |||
| 48 | |||
| 49 | /* |
||
| 50 | * @return void |
||
| 51 | */ |
||
| 52 | protected function setSubject($subject) |
||
| 57 | |||
| 58 | |||
| 59 | /* |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function getSubject() |
||
| 67 | |||
| 68 | |||
| 69 | /* |
||
| 70 | * @return void |
||
| 71 | */ |
||
| 72 | protected function setCategory($category) |
||
| 77 | |||
| 78 | |||
| 79 | /* |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function getCategory() |
||
| 87 | |||
| 88 | |||
| 89 | /* |
||
| 90 | * @return void |
||
| 91 | */ |
||
| 92 | abstract protected function invokeTest(); |
||
| 93 | } |
||
| 94 |