for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Reallyli\AB;
use Reallyli\AB\Commands\FlushCommand;
use Reallyli\AB\Session\CookieSession;
use Illuminate\Support\ServiceProvider;
use Reallyli\AB\Commands\ExportCommand;
use Reallyli\AB\Commands\ReportCommand;
use Reallyli\AB\Commands\InstallCommand;
class TesterServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
$this->publishes([
realpath(__DIR__).'/config/config.php' => config_path('ab.php'),
]);
if ($this->app->runningInConsole()) {
$this->commands([
ExportCommand::class,
FlushCommand::class,
InstallCommand::class,
ReportCommand::class,
}
* Register the application events.
* @return mixed
public static function setTrack($request)
return (new self())->app['ab']->track($request);
TesterServiceProvider::__construct()
$app
This check looks for function calls that miss required arguments.
* Register the service provider.
public function register()
$this->app->singleton('ab', function () {
return new Tester(new CookieSession);
});
This check looks for function calls that miss required arguments.