@@ 101-107 (lines=7) @@ | ||
98 | )); |
|
99 | } |
|
100 | ||
101 | if (is_string($node)) { |
|
102 | throw new ParserException(sprintf( |
|
103 | 'Expected Feature, but got text: "%s"%s', |
|
104 | $node, |
|
105 | $this->file ? ' in file: ' . $this->file : '' |
|
106 | )); |
|
107 | } |
|
108 | ||
109 | if (!$node instanceof FeatureNode) { |
|
110 | throw new ParserException(sprintf( |
|
@@ 339-345 (lines=7) @@ | ||
336 | continue; |
|
337 | } |
|
338 | ||
339 | if (is_string($node)) { |
|
340 | throw new ParserException(sprintf( |
|
341 | 'Expected Step, but got text: "%s"%s', |
|
342 | $node, |
|
343 | $this->file ? ' in file: ' . $this->file : '' |
|
344 | )); |
|
345 | } |
|
346 | ||
347 | if (!$node instanceof StepNode) { |
|
348 | throw new ParserException(sprintf( |
|
@@ 398-404 (lines=7) @@ | ||
395 | continue; |
|
396 | } |
|
397 | ||
398 | if (is_string($node)) { |
|
399 | throw new ParserException(sprintf( |
|
400 | 'Expected Step, but got text: "%s"%s', |
|
401 | $node, |
|
402 | $this->file ? ' in file: ' . $this->file : '' |
|
403 | )); |
|
404 | } |
|
405 | ||
406 | if (!$node instanceof StepNode) { |
|
407 | throw new ParserException(sprintf( |
|
@@ 469-475 (lines=7) @@ | ||
466 | continue; |
|
467 | } |
|
468 | ||
469 | if (is_string($node)) { |
|
470 | throw new ParserException(sprintf( |
|
471 | 'Expected Step or Examples table, but got text: "%s"%s', |
|
472 | $node, |
|
473 | $this->file ? ' in file: ' . $this->file : '' |
|
474 | )); |
|
475 | } |
|
476 | ||
477 | if (!$node instanceof StepNode) { |
|
478 | throw new ParserException(sprintf( |