File: //usr/local/wp/vendor/wp-cli/server-command/features/server.feature
@require-php-5.4
Feature: Serve WordPress locally
Scenario: Vanilla install
Given a WP install
And I launch in the background `wp server --host=localhost --port=8181`
And I run `wp option set blogdescription 'Just another WordPress site'`
When I run `curl -sS localhost:8181`
Then STDOUT should contain:
"""
Just another WordPress site
"""
When I run `curl -sS localhost:8181/license.txt > /tmp/license.txt`
And I run `cmp /tmp/license.txt license.txt`
Then STDOUT should be empty