Last active
December 28, 2015 11:49
-
-
Save simkimsia/7496569 to your computer and use it in GitHub Desktop.
Template of PluginName test suite file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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