Skip to content

Commit b6557b0

Browse files
authored
Merge pull request #309 from uuf6429/chore/make-cucumbernd-loader-consistent
test: Make CucumberND name reading consistent
2 parents a26228b + 30a4b06 commit b6557b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Loader/CucumberNDJsonAstLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ private static function getFeature(array $json, $filePath)
5050
$featureJson = $json['gherkinDocument']['feature'];
5151

5252
return new FeatureNode(
53-
$featureJson['name'] ?? null,
54-
$featureJson['description'] ?? null,
53+
$featureJson['name'],
54+
$featureJson['description'],
5555
self::getTags($featureJson),
5656
self::getBackground($featureJson),
5757
self::getScenarios($featureJson),
@@ -83,7 +83,7 @@ private static function getScenarios(array $json)
8383
static function ($child) {
8484
if ($child['scenario']['examples']) {
8585
return new OutlineNode(
86-
$child['scenario']['name'] ?? null,
86+
$child['scenario']['name'],
8787
self::getTags($child['scenario']),
8888
self::getSteps($child['scenario']['steps'] ?? []),
8989
self::getTables($child['scenario']['examples']),

0 commit comments

Comments
 (0)