Skip to content

Commit d7dc340

Browse files
committed
Fix tests path; fix namespace
1 parent ae74007 commit d7dc340

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

phpunit.dist.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
displayDetailsOnTestsThatTriggerWarnings="true">
2121
<testsuites>
2222
<testsuite name="Behat Gherkin test suite">
23-
<directory>./tests/Behat/Gherkin/</directory>
23+
<directory>./tests/</directory>
2424
</testsuite>
2525
</testsuites>
2626
<source>
2727
<include>
28-
<directory>./src/Behat/Gherkin/</directory>
28+
<directory>./src/</directory>
2929
</include>
3030
</source>
3131
</phpunit>

tests/Cucumber/CompatibilityTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
class CompatibilityTest extends TestCase
3333
{
34-
public const TESTDATA_PATH = __DIR__ . '/../../../../vendor/cucumber/cucumber/gherkin/testdata';
34+
public const TESTDATA_PATH = __DIR__ . '/../../vendor/cucumber/cucumber/gherkin/testdata';
3535

3636
private array $notParsingCorrectly = [
3737
'complex_background.feature' => 'Rule keyword not supported',
@@ -64,7 +64,7 @@ class CompatibilityTest extends TestCase
6464

6565
protected function setUp(): void
6666
{
67-
$arrKeywords = include __DIR__ . '/../../../../i18n.php';
67+
$arrKeywords = include __DIR__ . '/../../i18n.php';
6868
$lexer = new Lexer(new Keywords\ArrayKeywords($arrKeywords));
6969
$this->parser = new Parser($lexer);
7070
$this->loader = new CucumberNDJsonAstLoader();

tests/Keywords/CachedArrayKeywordsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class CachedArrayKeywordsTest extends KeywordsTestCase
1717
{
1818
protected function getKeywords()
1919
{
20-
return new CachedArrayKeywords(__DIR__ . '/../../../../i18n.php');
20+
return new CachedArrayKeywords(__DIR__ . '/../../i18n.php');
2121
}
2222

2323
protected function getKeywordsArray()
2424
{
25-
return include __DIR__ . '/../../../../i18n.php';
25+
return include __DIR__ . '/../../i18n.php';
2626
}
2727

2828
protected function getSteps($keywords, $text, &$line, $keywordType)

0 commit comments

Comments
 (0)