Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Last active December 28, 2015 11:49
Show Gist options
  • Select an option

  • Save simkimsia/7496569 to your computer and use it in GitHub Desktop.

Select an option

Save simkimsia/7496569 to your computer and use it in GitHub Desktop.
Template of PluginName test suite file
<?php
/**
* All{PluginName}Test test suite file
*
* will run ALL the tests for this CakePHP Plugin
*
* Copyright {copyright year}, {maintainer}
* {Location}
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright {copyright year}, {maintainer}
* @link {website}
* @author {maintainer} <{maintainer email}>
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @package {PluginName}
* @subpackage {PluginName}.Test.Case
* @version 0.1.0
*/
class All{PluginName}Test extends PHPUnit_Framework_TestSuite {
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite() {
$suite = new CakeTestSuite('All {PluginName} test');
$suite->addTestDirectoryRecursive(App::pluginPath('{PluginName}') . 'Test' . DS . 'Case' . DS);
return $suite;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment