| 1 | <?php |
||
| 5 | abstract class TestSuiteFactory extends TestFactory |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array|null |
||
| 9 | */ |
||
| 10 | private $tests = null; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param Configuration $configuration |
||
|
|
|||
| 14 | * @param TestData|null $testData |
||
| 15 | */ |
||
| 16 | public function __construct($configuration = null, $testData = null) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | protected function initialize() {} |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param TestFactory $test |
||
| 34 | * |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | protected function addTest($test) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return array |
||
| 45 | */ |
||
| 46 | public function getTests() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return void |
||
| 54 | */ |
||
| 55 | protected function calculateState() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return void |
||
| 70 | */ |
||
| 71 | abstract protected function invokeTestSuite(); |
||
| 72 | } |
||
| 73 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.