for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace terabytesoft\assets\fontawesome\tests;
use terabytesoft\assets\fontawesome\tests\FunctionalTester;
use terabytesoft\assets\fontawesome\cdn\css\CdnAllAsset;
use yii\web\AssetBundle;
use yii\web\View;
class ExampleCest
{
public function _before(FunctionalTester $I)
$I
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function _before(/** @scrutinizer ignore-unused */ FunctionalTester $I)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->view = new View();
view
}
/**
* _after
*
* @param UnitTester $I
*/
public function _after(UnitTester $I): void
public function _after(/** @scrutinizer ignore-unused */ UnitTester $I): void
unset($this->view);
// tests
public function tryToTest(FunctionalTester $I)
public function tryToTest(/** @scrutinizer ignore-unused */ FunctionalTester $I)
$result = $this->view->renderFile(codecept_data_dir() . 'example.php');
var_dump($result);
var_dump($result)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.