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