cakephp-potion
Version:
CakePHP Potion - Painless Gulp for CakePHP
26 lines (21 loc) • 740 B
JavaScript
var Potion = require('cakephp-potion');
var runTests = require('./shared/Tests');
var config = Potion.config;
/*
|----------------------------------------------------------------
| PHPUnit Testing
|----------------------------------------------------------------
|
| This task will trigger your entire PHPUnit test suite and it
| will show notifications indicating the success or failure
| of that test suite. It's works great with the tdd task.
|
*/
Potion.extend('phpUnit', function(src, options) {
runTests({
name: 'phpUnit',
src: src || (config.testing.phpUnit.path + '/**/*Test.php'),
plugin: Potion.Plugins.phpunit,
pluginOptions: options || config.testing.phpUnit.options
});
});