Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 711 Bytes

CommandContext.md

File metadata and controls

20 lines (17 loc) · 711 Bytes

CommandContext

This context contains steps to test symfony commands

Given

Given the next command input is <answer>

Will answer the next upcoming question with .

When

When I run command <command>

Execute the given symfony command, including parsing of arguments.

Then

Then the command has a return value of <code>

Check the return code. 0 indicates a success, everything else an error.

Then the command is successful

Shortcut to check for return code 0.

Then the command outputs <text>

Check if the text is contained somewhere in the command's output.

Then the command does not output <text>

Make sure, that the given text is not in the command's output.