for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: sergio.rodenas
* Date: 2019-01-20
* Time: 15:09
*/
namespace Rodenastyle\TestDoc;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
use Illuminate\Contracts\Http\Kernel;
use Rodenastyle\TestDoc\Middleware\IncludeInSpecification;
class ServiceProvider extends BaseServiceProvider
{
* Perform post-registration booting of services.
*
* @return void
public function boot(){
if($this->app->runningUnitTests()){
$this->app[Kernel::class]->pushMiddleware(IncludeInSpecification::class);
}