chatbox-inc/peridot-lumen-plugin
Peridot-Lumen-Plugin
Easy to test Lumen Application with Peridot;
Usage
install via composer
$ composer require --dev chatbox-inc/peridot-lumen-plugin
and register in peridot.php file
<?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
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");
});
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
631,580,251
9,707
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
404,034,618
608
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
387,976,821
4,658