Download the PHP package teaandcode/behat-guzzle-extension without Composer

On this page you can find all versions of the php package teaandcode/behat-guzzle-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package behat-guzzle-extension

Behat Guzzle Extension

Build Status

Scrutinizer Code Quality Code Coverage Build Status

Join the chat at https://gitter.im/teaandcode/behat-guzzle-extension

Guzzle extension for Behat is an integration layer between Behat 3.0+ and Guzzle 3.5+ and it provides:

Installation

Add to your project with Composer (dev)

Configuration

The extension is designed to require very little configuration, the only two fields it requires is a base_url and a service_descriptions file location.

The base_url is the root url containing either a host name or IP address of the API you're writing tests for, just make sure it's a fully qualified URL (the trailing slash is not required) e.g. http://127.0.0.1

The service_descriptions file location is required as the extension is designed to make use of a Guzzle service descriptions file, this means that all the endpoints and associated fields you want to test should be listed as JSON in the file for the extension to work.

Follow the link provided here if you want to know more about how to use the Guzzle service descriptions file or take a look at the example Guzzle service descriptions file excerpt below.

Example configuration in behat.yml

Example Guzzle service descriptions file

Further configuration

As you might have seen in the example configuration above, it is possible to pass a list of usernames or e-mail addresses that can be associated with an HTTP header Authorization Bearer token, which means that you're able to test secure parts of your API. Just specify the GuzzleContext as shown above in the behat.yml file and provide and array of users utilising the username/e-mail address ad the key with the bearer token as the value.

Predefined steps

TO DO: In the meantime checkout the repo.feature file in the features directory and the docblocks above each of the methods in the GuzzleContext.php file in the src/Behat/GuzzleExtension/Context directory.

To do

Copyright

Copyright (c) 2015 Dave Nash (knasher). See LICENSE for details.

Contributors


All versions of behat-guzzle-extension with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
behat/behat Version ~3.0,>=3.0.5
guzzle/guzzle Version >=3.5
symfony/config Version >=2.2 <3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package teaandcode/behat-guzzle-extension contains the following files

Loading the files please wait ....