phpunit 在kohana3.3中的使用方法
来源:互联网 发布:润和软件怎么样 编辑:程序博客网 时间:2024/05/16 11:11
安装phpunit步骤:
1、安装apache & php
2、安装pear
3、安装phpunit
pear install phpunit/PHPUnit
运行测试 kohana system
$ phpunit --bootstrap=modules/unittest/bootstrap.php modules/unittest/tests.php
KOHANA中写test
1、在application中写测试放在 "application/tests" 文件中
2、为module写测试放在“ modules/modulefolder/tests”中
分组测试
To allow users to selectively run tests you need to organise your tests into groups. Here's an example test showing how to do this
<?php
/**
* This is a description for my testcase
*
* @group somegroup
* @group somegroup.morespecific
*/
Class AnotherReallyCoolTest extends Unittest_TestCase
{
/**
* Tests can also be grouped too!
*
* @group somegroup.morespecific.annoyingstuff
*/
function testSomeAnnoyingCase()
{
// CODE!!
}
}
指定测试某个组
$ phpunit --bootstrap=index.php --group=somegroup modules/unittest/tests.php
列出所有测试组
$ phpunit --bootstrap=modules/unittest/bootstrap.php --list-groups modules/unittest/tests.php
- phpunit 在kohana3.3中的使用方法
- kohana3.3 ORM
- phpunit 使用方法一
- 在windows安装PHPUnit
- 在windows下安装phpunit
- phpunit在window下安装
- 在PHPStrom中配置PHPunit
- CGridCtrl在单文档中的使用方法 在对话框中的使用方法
- PHPunit
- phpunit
- checkbox在jsp中的使用方法
- maven在simple中的使用方法
- maven在simple中的使用方法
- MATLAB在PBS中的使用方法
- SDWebImageManager在CCLayer中的使用方法
- GridCtrl在对话框中的使用方法
- LibSVM 在matlab中的使用方法
- GridCtrl在对话框中的使用方法
- 爱情天梯!真爱都是伟大的!
- Spring特点中关于DI,IOC及AOP的理解
- 【Android社区】史上最牛最全android开发知识汇总
- 人们眼中的程序员
- (百例编程)82.四方定理
- phpunit 在kohana3.3中的使用方法
- Jython
- 利用RAD和WAS开发JAX-RS服务
- 收集一下核函数-Kernel Function
- 【VB6至VB.Net的进步】字符串转UTF-8的URL
- 笔试题
- 进程概述及创建(VC_Win32)
- 某天是星期几
- 第一,谈谈final, finally,finalize的区别。