Created
August 5, 2011 18:33
-
-
Save MarcelloDuarte/1128182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
md@bossa:phpspec (develop) $ behat | |
Feature: Developer sees help | |
As a developer | |
In order to know which cammands are available in PHPSpec | |
I want a command line option that displays the help | |
Scenario: Long option # features/developer_sees_help.feature:6 | |
When I use the command "phpspec --help" # CommandContext::iUseTheCommand() | |
Then I should see # CommandContext::iShouldSee() | |
""" | |
Usage: phpspec (FILE|DIRECTORY) + [options] | |
-b, --backtrace Enable full backtrace | |
-c, --colour, --color Enable color in the output | |
-e, --example STRING Run examples whose full nested names include STRING | |
-f, --formater FORMATTER Choose a formatter | |
[p]rogress (default - dots) | |
[d]ocumentation (group and example names) | |
[h]tml | |
custom formatter class name | |
-h, --help You're looking at it | |
--fail-fast Abort the run on first failure. | |
--version Show version | |
""" | |
expected 'Usage: phpspec (FILE|DIRECTORY) + [options] | |
-b, --backtrace Enable full backtrace | |
-c, --colour, --color Enable color in the output | |
-e, --example STRING Run examples whose full nested names include STRING | |
-f, --formater FORMATTER Choose a formatter | |
[p]rogress (default - dots) | |
[d]ocumentation (group and example names) | |
[h]tml | |
custom formatter class name | |
-h, --help You\'re looking at it | |
--fail-fast Abort the run on first failure. | |
--version Show version | |
', got 'Usage: phpspec (FILE|DIRECTORY) + [options] | |
-b, --backtrace Enable full backtrace | |
-c, --colour, --color Enable color in the output | |
-e, --example STRING Run examples whose full nested names include STRING | |
-f, --formater FORMATTER Choose a formatter | |
[p]rogress (default - dots) | |
[d]ocumentation (group and example names) | |
[h]tml | |
custom formatter class name | |
-h, --help You\'re looking at it | |
--fail-fast Abort the run on first failure. | |
--version Show version | |
' (using be()) |
Author
MarcelloDuarte
commented
Aug 5, 2011
output = $this->spec(shell_exec($command));
}
```
/**
* @then /^I should see$/
*/
public function iShouldSee(PyStringNode $output)
{
$this->output->should->be($output->getRaw());
}
```
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment