| Total Complexity | 0 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait InterfaceTest |
||
| 6 | { |
||
| 7 | // todo: add tests |
||
| 8 | |||
| 9 | use AssertInterface; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Retrieve the interface class that should be tested. |
||
| 13 | * |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | abstract public function interface(): string; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Retrieve an array of classes that should implement the interface. |
||
| 20 | * |
||
| 21 | * @return array |
||
| 22 | */ |
||
| 23 | abstract public function classes(): array; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Retrieve an array of method names that should exist in the interface. |
||
| 27 | * |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | abstract public function methods(): array; |
||
| 31 | } |
||
| 32 |