本文整理汇总了PHP中CakeTestSuite类的典型用法代码示例。如果您正苦于以下问题:PHP CakeTestSuite类的具体用法?PHP CakeTestSuite怎么用?PHP CakeTestSuite使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CakeTestSuite类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: suite
public static function suite()
{
$suite = new CakeTestSuite('All Acl component class tests');
$path = CakePlugin::path('Acl') . DS . 'Test' . DS . 'Case';
$suite->addTestDirectory($path . DS . 'Controller' . DS . 'Component');
return $suite;
}
示例2: suite
/**
* Suite define the tests for this suite
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Bs3Helpers tests');
$path = CakePlugin::path('Bs3Helpers') . 'Test' . DS . 'Case' . DS . 'View' . DS . 'Helper' . DS;
$suite->addTestDirectory($path);
return $suite;
}
示例3: suite
/**
* Suite define the tests for this suite
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Users tests');
$path = CakePlugin::path('Users') . 'Test' . DS . 'Case' . DS;
$suite->addTestDirectoryRecursive($path);
return $suite;
}
示例4: suite
public static function suite()
{
$suite = new CakeTestSuite('All commands tests');
$path = APP . 'Test' . DS . 'Case' . DS . 'Console' . DS . 'Command' . DS;
$suite->addTestDirectory($path);
return $suite;
}
示例5: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Tasks tests');
$path = CORE_TEST_CASES . DS . 'Console' . DS . 'Command' . DS . 'Task' . DS;
$suite->addTestDirectory($path);
return $suite;
}
示例6: suite
public static function suite()
{
$suite = new CakeTestSuite('All lib tests');
$path = APP . 'Test' . DS . 'Case' . DS . 'Lib' . DS;
$suite->addTestDirectory($path);
return $suite;
}
示例7: suite
/**
* Suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$Suite = new CakeTestSuite('All Shell tests');
$path = dirname(__FILE__);
$Suite->addTestDirectory($path . DS . 'Console' . DS . 'Command');
return $Suite;
}
示例8: suite
public static function suite()
{
$suite = new CakeTestSuite('All tests');
$dir = dirname(__FILE__);
$suite->addTestDirectory($dir . DS . 'Model');
return $suite;
}
示例9: suite
/**
* Suite define the tests for this suite
*
* @return CakeTestSuite
*/
public static function suite()
{
$suite = new CakeTestSuite('All Helper tests');
$suite->addTestDirectory(__DIR__ . DS . 'Model' . DS);
$suite->addTestDirectory(__DIR__ . DS . 'Model' . DS . 'Behavior' . DS);
return $suite;
}
示例10: 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;
}
示例11: suite
public static function suite()
{
$suite = new CakeTestSuite('All tests');
$suite->addTestDirectory(TESTS . 'Case' . DS . 'Model');
$suite->addTestDirectory(TESTS . 'Case' . DS . 'Controller');
return $suite;
}
示例12: suite
public static function suite()
{
$suite = new CakeTestSuite('All Auditable Tests');
$suite->addTestDirectory(__DIR__ . '/Model');
$suite->addTestDirectory(__DIR__ . '/Model/Behavior');
return $suite;
}
示例13: suite
public static function suite()
{
$suite = new CakeTestSuite('Croogo controller tests');
$path = APP . 'Vendor' . DS . 'croogo' . DS . 'croogo' . DS . 'Croogo' . DS . 'Test' . DS . 'Case' . DS . 'Controller' . DS;
$suite->addTestDirectory($path);
return $suite;
}
示例14: suite
public static function suite()
{
$suite = new CakeTestSuite('Croogo behavior tests');
$path = APP . 'Vendor' . DS . 'croogo' . DS . 'croogo' . DS . 'Croogo' . DS . 'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior' . DS;
$suite->addTestDirectory($path);
return $suite;
}
示例15: suite
public static function suite()
{
$path = APP . 'Plugin' . DS . 'Api' . DS . 'Test' . DS . 'Case' . DS;
$suite = new CakeTestSuite('All tests');
$suite->addTestDirectoryRecursive($path);
return $suite;
}