Get support for KnpLabs/behat-webapi-demo

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

KnpLabs/behat-webapi-demo

A Behat+WebApiContext Demo

Installation

Requirements:

You need a valid PHPUnit 3.5 installation:

pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com

pear install phpunit/PHPUnit

Behat doesn't care what you use to validate your steps. But WebApiContext uses PHPUnit assertions internally!

Usage

Clone this repo:

git clone https://github.com/KnpLabs/behat-webapi-demo

Now install Behat, CommonContexts and their dependencies:

wget -nc http://getcomposer.org/composer.phar
php composer.phar install

Now to launch Behat, just run:

bin/behat

you should see an output like:

Feature: Labels
  In order to distinguish issues
  As a GitHub user
  I need to be able to label them

  Scenario: List repository labels
    When I send a GET request to "/repos/behat/mink/labels"
    Then the response code should be 200
    And response should contain json:
      """
      [
          {
              "url":   "BASE_URL/repos/Behat/Mink/labels/feature",
              "name":  "feature",
              "color": "02e10c"
          },
          {
              "url":   "BASE_URL/repos/Behat/Mink/labels/bug",
              "name":  "bug",
              "color": "e10c02"
          },
          {
              "url":    "BASE_URL/repos/Behat/Mink/labels/proposal",
              "name":   "proposal",
              "color":  "d7e102"
          }
      ]
      """

1 scenario (1 passed)
3 steps (3 passed)
Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2