2017 © Pedro Peláez
 

symfony-bundle guzzle-stereo-bundle

Record and Replay HTTP Responses easily in Symfony

image

estahn/guzzle-stereo-bundle

Record and Replay HTTP Responses easily in Symfony

  • Thursday, March 17, 2016
  • by estahn
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1,350 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

GuzzleStereoBundle

Latest Stable Version Total Downloads Dependency Status SensioLabsInsight Build Status StyleCI, (*1)

The GuzzleStereoBundle provides integration of the guzzle-stereo library into the Symfony2 framework., (*2)

Features include: * Automatic recording of all outgoing requests through Guzzle * Replay recorded requests in functional tests * Copy & paste of file with last recorded requests, (*3)

GuzzleStereoBundle automatically hooks guzzle-stereo into Guzzle which then records all requests made through Guzzle. The goal is to reduce the effort to create mocks for external requests., (*4)

Installation

  1. Download the Bundle, (*5)

    Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*6)

    $ composer require estahn/guzzle-stereo-bundle --dev
    

    This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*7)

  2. Enable the Bundle, (*8)

    Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*9)

    <?php
    // app/AppKernel.php
    
    // ...
    class AppKernel extends Kernel
    {
       public function registerBundles()
       {
           $bundles = array(
               // ...
    
               new EnricoStahn\Bundle\GuzzleStereoBundle\GuzzleStereoBundle(),
           );
    
           // ...
       }
    
       // ...
    }
    
  3. Enable the service by adding the following empty configuration:, (*10)

    # app/config/config_test.yml
    guzzle_stereo: ~
    

Usage

Refresh your page and find the created file in app/logs/record_<tape name>.json., (*11)

Badge Mania

Build Status Scrutinizer Code Quality Code Coverage Codacy Badge, (*12)

The Versions

17/03 2016

dev-master

9999999-dev https://github.com/estahn/guzzle-stereo-bundle

Record and Replay HTTP Responses easily in Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Enrico Stahn

mock phpunit guzzle

15/03 2016

v0.2.0

0.2.0.0 https://github.com/estahn/guzzle-stereo-bundle

Record and Replay HTTP Responses easily in Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Enrico Stahn

mock phpunit guzzle

10/03 2016

v0.1.0

0.1.0.0 https://github.com/estahn/guzzle-stereo-bundle

Record and Replay HTTP Responses easily in Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Enrico Stahn

mock phpunit guzzle