本文整理汇总了PHP中CakeTestSuite::addTestDirectory方法的典型用法代码示例。如果您正苦于以下问题:PHP CakeTestSuite::addTestDirectory方法的具体用法?PHP CakeTestSuite::addTestDirectory怎么用?PHP CakeTestSuite::addTestDirectory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CakeTestSuite
的用法示例。
在下文中一共展示了CakeTestSuite::addTestDirectory方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: suite
/**
* Suite define the tests for this suite
*
* @return CakeTestSuite
*/
public static function suite()
{
$suite = new CakeTestSuite('All Helper tests');
$suite->addTestDirectory(__DIR__ . DS . 'Controller' . DS);
$suite->addTestDirectory(__DIR__ . DS . 'Controller' . DS . 'Component' . DS);
return $suite;
}
示例2: suite
public static function suite()
{
$suite = new CakeTestSuite('All tests');
$suite->addTestDirectory(TESTS . 'Case' . DS . 'Model');
$suite->addTestDirectory(TESTS . 'Case' . DS . 'Controller');
return $suite;
}
示例3: suite
public static function suite()
{
$suite = new CakeTestSuite('All Auditable Tests');
$suite->addTestDirectory(__DIR__ . '/Model');
$suite->addTestDirectory(__DIR__ . '/Model/Behavior');
return $suite;
}
示例4: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Cache related class tests');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Cache');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Cache' . DS . 'Engine');
return $suite;
}
示例5: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$Suite = new CakeTestSuite('All Plugin tests');
$path = dirname(__FILE__);
$Suite->addTestDirectory($path . DS . 'View' . DS . 'Helper');
$Suite->addTestDirectory($path . DS . 'Lib' . DS . 'Parser');
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);
$suite->addTestDirectory($path . 'Configure');
return $suite;
}
示例7: suite
public static function suite()
{
$suite = new CakeTestSuite('All Users plugin tests');
$path = CakePlugin::path('Users') . DS . 'Test' . DS . 'Case' . DS;
$suite->addTestDirectory($path . 'Controller');
$suite->addTestDirectory($path . 'Model');
return $suite;
}
示例8: suite
public static function suite()
{
$suite = new CakeTestSuite('All tests');
$dir = dirname(__FILE__);
$suite->addTestDirectory($dir . DS . 'Behavior');
$suite->addTestDirectory($dir . DS . 'Datasource');
return $suite;
}
示例9: suite
/**
* Suite define the tests for this suite
*
* @return CakeTestSuite
*/
public static function suite()
{
$suite = new CakeTestSuite('All Helper tests');
$path = dirname(__FILE__) . DS;
$suite->addTestDirectory($path . 'Model' . DS);
$suite->addTestDirectory($path . 'Model' . DS . 'Behavior' . DS);
return $suite;
}
示例10: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Routing class tests');
$libs = CORE_TEST_CASES . DS;
$suite->addTestDirectory($libs . 'Routing');
$suite->addTestDirectory($libs . 'Routing' . DS . 'Route');
return $suite;
}
示例11: suite
public static function suite()
{
$suite = new CakeTestSuite('All Locale Tests');
$suite->addTestDirectory(__DIR__ . '/Lib');
$suite->addTestDirectory(__DIR__ . '/Model/Behavior');
$suite->addTestDirectory(__DIR__ . '/View/Helper');
return $suite;
}
示例12: suite
/**
* Compile test suite with all tests
*
* @return CakeTestSuite The compiled test suite.
*/
public static function suite()
{
$Suite = new CakeTestSuite('All Plugin tests');
$path = dirname(__FILE__);
$Suite->addTestDirectory($path . DS . 'Controller' . DS . 'Component');
$Suite->addTestDirectory($path . DS . 'Model' . DS . 'Behavior');
return $Suite;
}
示例13: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Network related class tests');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Network');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Network' . DS . 'Email');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'Network' . DS . 'Http');
return $suite;
}
示例14: suite
/**
* Suite define the tests for this suite
*
* @return void
*/
public static function suite()
{
$Suite = new CakeTestSuite('All Categories tests');
$path = dirname(__FILE__);
$Suite->addTestDirectory($path . DS . 'Controller');
$Suite->addTestDirectory($path . DS . 'Model');
return $Suite;
}
示例15: suite
public static function suite()
{
$suite = new CakeTestSuite('All model tests');
$suite->addTestDirectory(__DIR__ . DS . 'Lib');
$suite->addTestDirectory(__DIR__ . DS . 'Console' . DS . 'Command');
$suite->addTestDirectory(__DIR__ . DS . 'Config');
return $suite;
}