Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function testGoodFeatures($featureFile, $astFile) |
||
28 | { |
||
29 | $arrKeywords = include __DIR__ . '/../../i18n.php'; |
||
30 | $lexer = new Behat\Gherkin\Lexer(new ArrayKeywords($arrKeywords)); |
||
31 | $parser = new Behat\Gherkin\Parser($lexer); |
||
32 | |||
33 | $feature = $parser->parse(file_get_contents($featureFile)); |
||
34 | } |
||
35 | |||
59 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.