for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use sonrac\WAMP\Commands\RunServer;
/**
* Class RunServerCommandCest
* Run server command test
*
*/
class RunServerCommandCest
{
public function _before(UnitTester $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 */ UnitTester $I)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
}
public function _after(UnitTester $I)
public function _after(/** @scrutinizer ignore-unused */ UnitTester $I)
// tests
public function tryToTest(UnitTester $I)
public function tryToTest(/** @scrutinizer ignore-unused */ UnitTester $I)
$command = new RunServer();
$command
* Test background server run
* @param \UnitTester $I
public function testBackgroundMode(UnitTester $I) {
public function testBackgroundMode(/** @scrutinizer ignore-unused */ UnitTester $I) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.