Skip to content

Commit

Permalink
Update phpspec examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pocky committed Dec 11, 2015
1 parent 36e8f43 commit 08d7ff6
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,19 @@ Activate the Behat extension by specifying its class in your `behat.yml`:

```yaml
# behat.yml
default:
# ...
extensions:
RMiller\BehatSpec\BehatExtension:
path: bin/phpspec #default value is bin/phpspec
config: path/to/phpspec.yml #optional
# ...
extensions:
- RMiller\BehatSpec\BehatExtension:
path: bin/phpspec #default value is bin/phpspec
config: path/to/phpspec.yml #optional
```

Activate the PhpSpec extension by specifying its class in your `phpspec.yml`:

```yaml
# phpspec.yml
extensions:
- RMiller\BehatSpec\PhpSpecExtension
- RMiller\BehatSpec\PhpSpecExtension
```

Additional configuration can be provided for the running of the `phpspec run` command:
Expand All @@ -120,14 +119,16 @@ These can be overridden as follows:

```yaml
# phpspec.yml
default:
# ...
extensions:
suites:
default:
# ...
rerunner:
path: vendor/bin/phpspec
commands: [describe, exemplify, your_own_fancy_command]
config: path/to/phpspec.yml #optional

extensions:
- RMiller\BehatSpec\PhpSpecExtension
rerunner:
path: vendor/bin/phpspec
commands: [describe, exemplify, your_own_fancy_command]
config: path/to/phpspec.yml #optional
```

### Some Details
Expand Down

1 comment on commit 08d7ff6

@docteurklein
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.