Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | class ExampleParser |
||
8 | { |
||
9 | private const DATA_PROVIDER_REGEX = '/@dataProvider ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)/'; |
||
10 | |||
11 | /** |
||
12 | * Returns the data provider method looking for the @dataProvider annotation |
||
13 | * |
||
14 | * @param ExampleNode $example |
||
15 | * |
||
16 | * @return string|null |
||
17 | */ |
||
18 | public function getDataProvider(ExampleNode $example): ?string |
||
34 |