本文整理汇总了PHP中CakeTestSuite::addTestDirectoryRecursive方法的典型用法代码示例。如果您正苦于以下问题:PHP CakeTestSuite::addTestDirectoryRecursive方法的具体用法?PHP CakeTestSuite::addTestDirectoryRecursive怎么用?PHP CakeTestSuite::addTestDirectoryRecursive使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CakeTestSuite
的用法示例。
在下文中一共展示了CakeTestSuite::addTestDirectoryRecursive方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: suite
public static function suite()
{
$suite = new CakeTestSuite('All CakeGanache tests');
$suite->addTestDirectoryRecursive(__DIR__ . DS . 'Config');
$suite->addTestDirectoryRecursive(__DIR__ . DS . 'View');
return $suite;
}
示例2: suite
/**
* Get the suite object.
*
* @return CakeTestSuite Suite class instance.
*/
public static function suite()
{
$suite = new CakeTestSuite('All api tests');
$root = APP . 'Plugin' . DS . 'Api' . DS . 'Test' . DS . 'Case' . DS;
$suite->addTestDirectoryRecursive($root . 'Controller');
$suite->addTestDirectoryRecursive($root . 'Lib');
return $suite;
}
示例3: suite
public static function suite()
{
$suite = new CakeTestSuite('All tests');
$suite->addTestDirectoryRecursive(TESTS . 'Case');
foreach (array('Dane') as $plugin) {
$suite->addTestDirectoryRecursive(APP . 'Plugin' . DS . $plugin . DS . 'Test' . DS . 'Case');
}
return $suite;
}
示例4: suite
/**
* Suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$Suite = new CakeTestSuite('All Mailchimp tests');
$path = dirname(__FILE__);
$Suite->addTestDirectoryRecursive($path . DS . 'Model');
$Suite->addTestDirectoryRecursive($path . DS . 'Lib');
$Suite->addTestDirectoryRecursive($path . DS . 'Network');
return $Suite;
}
示例5: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$caseDir = dirname(__FILE__) . DS;
$suite = new CakeTestSuite('All facebook plugin tests');
$suite->addTestDirectoryRecursive($caseDir . 'Lib');
$suite->addTestDirectoryRecursive($caseDir . 'Model');
$suite->addTestDirectoryRecursive($caseDir . 'View');
return $suite;
}
示例6: suite
public static function suite()
{
$plugin = 'Ipay';
$suite = new CakeTestSuite('All Ipay Tests Exclude Integration Test');
$suite->addTestDirectoryRecursive(APP . DS . 'Plugin' . DS . $plugin . DS . 'Test' . DS . 'Case' . DS . 'Lib' . DS);
$suite->addTestDirectoryRecursive(APP . DS . 'Plugin' . DS . $plugin . DS . 'Test' . DS . 'Case' . DS . 'Model' . DS);
$suite->addTestDirectoryRecursive(APP . DS . 'Plugin' . DS . $plugin . DS . 'Test' . DS . 'Case' . DS . 'View' . DS);
$suite->addTestDirectoryRecursive(APP . DS . 'Plugin' . DS . $plugin . DS . 'Test' . DS . 'Case' . DS . 'Controller' . DS);
return $suite;
}
示例7: suite
/**
* Test suite to run everything
*/
public static function suite()
{
$suite = new CakeTestSuite('All test cases');
$suite->addTestDirectoryRecursive(TESTS . 'Case');
// test plugins that are part of the app
foreach (array('AuthService') as $plugin) {
$suite->addTestDirectoryRecursive(APP . 'Plugin' . DS . $plugin . DS . 'Test' . DS . 'Case');
}
return $suite;
}
示例8: suite
/**
* Adds all test directories
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Seo Tests');
$path = dirname(__FILE__);
$suite->addTestDirectoryRecursive($path . DS . 'Controller');
$suite->addTestDirectoryRecursive($path . DS . 'Model');
$suite->addTestDirectoryRecursive($path . DS . 'Lib');
$suite->addTestDirectoryRecursive($path . DS . 'Helper');
return $suite;
}
示例9: suite
/**
* All AdvancedShell tests suite
*
* @return PHPUnit_Framework_TestSuite the instance of PHPUnit_Framework_TestSuite
*/
public static function suite()
{
$suite = new CakeTestSuite('All AdvancedShell Tests');
$basePath = App::pluginPath('AdvancedShell') . 'Test' . DS . 'Case' . DS;
$suite->addTestDirectoryRecursive($basePath);
return $suite;
}
示例10: suite
/**
* Suite define the tests for this suite
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Datasources test');
$path = CakePlugin::path('InlineCss') . 'Test' . DS . 'Case' . DS;
$suite->addTestDirectoryRecursive($path);
return $suite;
}
示例11: suite
/**
* Suite define the tests for this plugin
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All VatNumberCheck test');
$path = CakePlugin::path('VatNumberCheck') . 'Test' . DS . 'Case' . DS;
$suite->addTestDirectoryRecursive($path);
return $suite;
}
示例12: suite
/**
* All GoogleChart tests suite
*
* @return PHPUnit_Framework_TestSuite the instance of PHPUnit_Framework_TestSuite
*/
public static function suite()
{
$suite = new CakeTestSuite('All GoogleChart Tests');
$basePath = App::pluginPath('GoogleChart') . 'Test' . DS . 'Case' . DS;
$suite->addTestDirectoryRecursive($basePath);
return $suite;
}
示例13: suite
/**
* Suite define the tests for this suite
*
* @return CakeTestSuite
*/
public static function suite()
{
$suite = new CakeTestSuite('All Authorize test');
$path = CakePlugin::path('Sifter') . 'Test' . DS . 'Case' . DS;
$suite->addTestDirectoryRecursive($path);
return $suite;
}
示例14: suite
/**
* All ClopeClustering tests suite
*
* @return PHPUnit_Framework_TestSuite the instance of PHPUnit_Framework_TestSuite
*/
public static function suite()
{
$suite = new CakeTestSuite('All ClopeClustering Tests');
$basePath = App::pluginPath('ClopeClustering') . 'Test' . DS . 'Case' . DS;
$suite->addTestDirectoryRecursive($basePath);
return $suite;
}
示例15: suite
/**
* All SnatzAPISource tests suite
*
* @return PHPUnit_Framework_TestSuite the instance of PHPUnit_Framework_TestSuite
*/
public static function suite()
{
$suite = new CakeTestSuite('All SMSFlySource Tests');
$basePath = App::pluginPath('SMSFlySource') . 'Test' . DS . 'Case' . DS;
$suite->addTestDirectoryRecursive($basePath);
return $suite;
}