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
erirk/paypalpayment
laravel-paypalpayment is simple package help you process direct credit card paym...
0
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
628,058,007
9,707