@@ 98-104 (lines=7) @@ | ||
95 | )); |
|
96 | } |
|
97 | ||
98 | if (is_string($node)) { |
|
99 | throw new ParserException(sprintf( |
|
100 | 'Expected Feature, but got text: "%s"%s', |
|
101 | $node, |
|
102 | $this->file ? ' in file: ' . $this->file : '' |
|
103 | )); |
|
104 | } |
|
105 | ||
106 | if (!$node instanceof FeatureNode) { |
|
107 | throw new ParserException(sprintf( |
|
@@ 334-340 (lines=7) @@ | ||
331 | continue; |
|
332 | } |
|
333 | ||
334 | if (is_string($node)) { |
|
335 | throw new ParserException(sprintf( |
|
336 | 'Expected Step, but got text: "%s"%s', |
|
337 | $node, |
|
338 | $this->file ? ' in file: ' . $this->file : '' |
|
339 | )); |
|
340 | } |
|
341 | ||
342 | if (!$node instanceof StepNode) { |
|
343 | throw new ParserException(sprintf( |
|
@@ 391-397 (lines=7) @@ | ||
388 | continue; |
|
389 | } |
|
390 | ||
391 | if (is_string($node)) { |
|
392 | throw new ParserException(sprintf( |
|
393 | 'Expected Step, but got text: "%s"%s', |
|
394 | $node, |
|
395 | $this->file ? ' in file: ' . $this->file : '' |
|
396 | )); |
|
397 | } |
|
398 | ||
399 | if (!$node instanceof StepNode) { |
|
400 | throw new ParserException(sprintf( |
|
@@ 454-460 (lines=7) @@ | ||
451 | continue; |
|
452 | } |
|
453 | ||
454 | if (is_string($node)) { |
|
455 | throw new ParserException(sprintf( |
|
456 | 'Expected Step or Examples table, but got text: "%s"%s', |
|
457 | $node, |
|
458 | $this->file ? ' in file: ' . $this->file : '' |
|
459 | )); |
|
460 | } |
|
461 | ||
462 | if (!$node instanceof StepNode) { |
|
463 | throw new ParserException(sprintf( |