for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Venus\src\Batch\Controller;
use \Venus\src\Batch\common\Controller as Controller;
class Phpunit extends Controller
{
/**
* Constructs a test case with the given name.
*
*/
public function __construct()
parent::__construct();
}
* new method to launch a web server
* @param array $options
* @tutorial php bin/console server:run
* php bin/console server:run -a 192.168.0.1:8000
public function phpunit(array $options = array())
$options
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
ob_get_clean();
$files = scandir(__DIR__.'/../../../../tests');
foreach ($files as $one) {
if (is_dir(__DIR__.'/../../../../tests/'.$one) && $one != '..' && $one != '.') {
$controllerFiles = scandir(__DIR__.'/../../../../tests'.'/'.$one.'/app/Controller');
foreach ($controllerFiles as $oneController) {
if (is_file(__DIR__.'/../../../../tests/'.$one.'/app/Controller/' . $oneController) && $oneController != '..' && $oneController != '.') {
$unitTest = new \PHPUnit_TextUI_Command;
$unitTest->run([__DIR__.'/../../../../tests/'.$one.'/app/Controller/' . $oneController]);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.