for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests;
use Triadev\Es\Mapping\Provider\ServiceProvider;
use Triadev\Es\Provider\ElasticsearchServiceProvider;
class TestCase extends \Orchestra\Testbench\TestCase
{
/**
* Setup the test environment.
*/
public function setUp()
parent::setUp();
}
* @inheritDoc
*
* (Increase visibility to public)
* @return void
public function tearDown()
parent::tearDown();
* Get package providers. At a minimum this is the package being tested, but also
* would include packages upon which our package depends, e.g. Cartalyst/Sentry
* In a normal app environment these would be added to the 'providers' array in
* the config/app.php file.
* @param \Illuminate\Foundation\Application $app
* @return array
protected function getPackageProviders($app)
$app
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function getPackageProviders(/** @scrutinizer ignore-unused */ $app)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return [
ServiceProvider::class,
ElasticsearchServiceProvider::class
];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.