本文整理汇总了PHP中CakeTestSuite::addTestFile方法的典型用法代码示例。如果您正苦于以下问题:PHP CakeTestSuite::addTestFile方法的具体用法?PHP CakeTestSuite::addTestFile怎么用?PHP CakeTestSuite::addTestFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CakeTestSuite
的用法示例。
在下文中一共展示了CakeTestSuite::addTestFile方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: suite
public static function suite()
{
$suite = new CakeTestSuite('All Bitmasked tests');
$suite->addTestFile(dirname(__FILE__) . DS . 'Model' . DS . 'BitmaskedBitTest.php');
$suite->addTestFile(dirname(__FILE__) . DS . 'Model' . DS . 'Behavior' . DS . 'BitmaskedBehaviorTest.php');
return $suite;
}
示例2: suite
/**
* Метод сборки
*/
public static function suite()
{
$suite = new CakeTestSuite('All rabbit tests');
$suite->addTestFile(__DIR__ . DS . 'Dummy' . DS . 'ProducerTest.php');
$suite->addTestFile(__DIR__ . DS . 'Dummy' . DS . 'ConsumerTest.php');
return $suite;
}
示例3: suite
/**
* suite declares tests to run
*
* @access public
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Helper tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helper.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helper_collection.test.php');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helpers' . DS);
return $suite;
}
示例4: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All component class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'component.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'component_collection.test.php');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'components');
return $suite;
}
示例5: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All component class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'Controller' . DS . 'ComponentTest.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'Controller' . DS . 'ComponentCollectionTest.php');
$suite->addTestDirectoryRecursive(CORE_TEST_CASES . DS . 'Controller' . DS . 'Component');
return $suite;
}
示例6: suite
/**
* suite declares tests to run
*
* @access public
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Helper tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'View' . DS . 'HelperTest.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'View' . DS . 'HelperCollectionTest.php');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'View' . DS . 'Helper' . DS);
return $suite;
}
示例7: suite
public static function suite()
{
$suite = new CakeTestSuite('All Acl plugin tests');
$path = CakePlugin::path('Acl') . DS . 'Test' . DS . 'Case' . DS;
$suite->addTestFile($path . 'AllAclControllersTest.php');
$suite->addTestFile($path . 'AllAclComponentsTest.php');
return $suite;
}
示例8: suite
/**
* Suite define the tests for this suite
*
* @return CakeTestSuite
*/
public static function suite()
{
$suite = new CakeTestSuite('Baser All Tests');
$path = __DIR__ . DS;
$suite->addTestFile($path . 'MailAllControllerTest.php');
$suite->addTestFile($path . 'MailAllModelTest.php');
$suite->addTestFile($path . 'MailAllHelpersTest.php');
return $suite;
}
示例9: suite
/**
* Метод сборки
*/
public static function suite()
{
$suite = new CakeTestSuite('All gearman tests');
$suite->addTestFile(__DIR__ . DS . 'ClientTest.php');
$suite->addTestFile(__DIR__ . DS . 'WorkerTest.php');
$suite->addTestFile(__DIR__ . DS . 'ManagerTest.php');
$suite->addTestFile(__DIR__ . DS . 'Restart' . DS . 'ClientTest.php');
return $suite;
}
示例10: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All console classes');
$path = CORE_TEST_CASES . DS . 'Console' . DS;
$suite->addTestFile($path . 'AllConsoleLibsTest.php');
$suite->addTestFile($path . 'AllTasksTest.php');
$suite->addTestFile($path . 'AllShellsTest.php');
return $suite;
}
示例11: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('TreeBehavior tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Behavior' . DS . 'TreeBehaviorNumberTest.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Behavior' . DS . 'TreeBehaviorScopedTest.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Behavior' . DS . 'TreeBehaviorAfterTest.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Behavior' . DS . 'TreeBehaviorUuidTest.php');
return $suite;
}
示例12: suite
/**
* Suite define the tests for this suite
*
* @return CakeTestSuite
*/
public static function suite()
{
$suite = new CakeTestSuite('Baser Blog All Tests');
$path = dirname(__FILE__) . DS;
//$suite->addTestFile($path . 'BlogAllControllerTest.php');
$suite->addTestFile($path . 'BlogAllModelTest.php');
$suite->addTestFile($path . 'BlogAllHelpersTest.php');
return $suite;
}
示例13: suite
public static function suite()
{
$suite = new CakeTestSuite('All core plugins tests');
$path = CakePlugin::path('Acl') . 'Test' . DS . 'Case' . DS;
$suite->addTestFile($path . 'AllAclTestsTest.php');
$path = CakePlugin::path('Extensions') . DS . 'Test' . DS . 'Case' . DS;
$suite->addTestFile($path . 'AllExtensionsTestsTest.php');
return $suite;
}
示例14: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Socket related class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_socket.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'http_socket.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'http_response.test.php');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'libs' . DS . 'http');
return $suite;
}
示例15: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new CakeTestSuite('All Configure, App and ClassRegistry related tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'configure.test.php');
$suite->addTestDirectory(CORE_TEST_CASES . DS . 'libs' . DS . 'config');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'app.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'class_registry.test.php');
return $suite;
}