Gulp 4 – Error – “Task function must be specified”

// Gulp task to minify all files
gulp.task('default', ['clean'], function () {
  runSequence(
    'styles',
    'scripts',
    'pages'
  );
});

If you  this Standart Tasks sequence from every Tutorial using, you will be got this error message.

Fixing is so simple for simple way. Because gulp.tasks(name, deps, func)  method  was replaced by  gulp.task(name, gulp.series/gulp.parallel)(deps, func)

// Gulp task to minify all files
gulp.task('default',
gulp.series('clean', gulp.parallel('scripts', 'styles')
));

PSR-2 PHP_CodeSniffer Config

# phpcs.xml, this file must be under project root folder.

 

Travis CI for PHPUnit and PHP_CodeSniffer

# .travis.yml, this file must be under project root folder.

 

PHPUnit Boilerplate

Of course first  phpunit/phpunit to be installed. I think, local installation much better.

# phpunit.xml

# ExampleTest.php, this file must be under tests folder.

(root/tests/ExampleTest.php)

# Run on Command prompt.

# Example Output