2017 © Pedro Peláez
 

library peridot-lumen-plugin

A Peridot plugin to simplify testing Lumen applications

image

chatbox-inc/peridot-lumen-plugin

A Peridot plugin to simplify testing Lumen applications

  • Thursday, July 28, 2016
  • by mikakane
  • Repository
  • 2 Watchers
  • 0 Stars
  • 78 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Peridot-Lumen-Plugin

Easy to test Lumen Application with Peridot;, (*1)

Usage

install via composer, (*2)

$ composer require --dev chatbox-inc/peridot-lumen-plugin

and register in peridot.php file, (*3)

<?php
use Evenement\EventEmitterInterface;

return function(EventEmitterInterface $emitter) {
    \Peridot\Plugin\Lumen\register(require __DIR__ . '/app.php');
};

You can use it in your spec as $this->lumen, (*4)

    it('GET /string should get string ', function() {
        $this->lumen->get("/string");
        /** @var \Illuminate\Http\Response $response */
        $response = $this->lumen->response;

        assert($response->getStatusCode() === 200);
        assert($response->getOriginalContent() === "hogehoge");
    });

The Versions

28/07 2016

dev-master

9999999-dev

A Peridot plugin to simplify testing Lumen applications

  Sources   Download

MIT

The Requires

 

by Avatar mikakane

28/07 2016

1.0.2

1.0.2.0

A Peridot plugin to simplify testing Lumen applications

  Sources   Download

MIT

The Requires

 

by Avatar mikakane

28/07 2016

1.0.0

1.0.0.0

A Peridot plugin to simplify testing HttpKernel applications

  Sources   Download

MIT

The Requires

 

by Avatar mikakane