phpunit中的分组测试

老鱼 posted @ 2009年12月31日 09:27 in php with tags phpunit 分组 group , 1183 阅读

首先确保你的代码像这样:

 

<?php
class TestTest extends PHPUnit_Framework_TestCase{   

/**     
* @group a     
*/   

public function testOne()   
{   
}     

/**     
* @group a     
* @group b     
*/   

public function testTwo()   
{   
}

}

?>

 

 

 sb@vmware ~ % phpunit --group a TestTest
PHPUnit 3.2.0-dev by Sebastian Bergmann.
Time: 0 seconds
OK (2 tests)

 

sb@vmware ~ % phpunit --group b TestTest
PHPUnit 3.2.0-dev by Sebastian Bergmann.
Time: 0 seconds
OK (1 test)

Avatar_small
cleaning services 说:
2019年9月12日 14:43

It's obvious that several cleaning products in the marketplace are Molly Cleaning service friendly, although some will abandon your 'clean' career laden together with dirt and also streaks. Buy specialist grade washing products inside bulk from your supplier. Then you're able to dilute these with h2o, which can save you money and also time, and enable you to perform a specialist job. Just be sure that if you employ these goods, you use gloves and also always stick to the safety information on the brands.

Avatar_small
starliteshoppingmall 说:
2020年6月02日 17:52

The thought of a charitable organization shop may differ from region to region. For illustration, it is named thrift retailer, resale go shopping, hospice shop in america and Europe, Opportunity (op) go shopping in Quarterly report and Fresh Zealand and also 2nd palm shop inside Malaysia.

Avatar_small
shopping-batalha 说:
2020年6月02日 17:53

On the web shopping will be rapidly becoming the initial choice of men and women on earth for refreshed or standard shopping. Steadily, online shopping will be accepted because the new and also fashionable means of shopping.

Avatar_small
elimperiotravel 说:
2020年6月02日 17:53

With average man or woman access for the Internet, many airlines as well as other travel companies begun to sell right to passengers. For that reason, airlines will no longer needed to cover the commissions traveling agents about each admission sold. Given that 1997, travel organizations have steadily been disintermediated(Cutting the middle man).

Avatar_small
travelling2peru 说:
2020年6月02日 17:54

Skilled travel professionals know what you would like, they communicate your terminology, and they may be there to suit your needs when you come across trouble if you are planning any occasion. How carry out they realize this? To begin with, they listen you might say to comprehend your vacation needs and so they help any time something should go wrong.

Avatar_small
rapidity-news 说:
2020年6月02日 17:55

God's headline news could be the gospel - very good news. It is merely what we'd like. Jesus could be the living air of oxygen - the particular ray regarding sunshine we'd like. Trust inside Him and also all is manufactured right. Sins are usually forgiven. Life features a purpose. Issues are assessed not simply by difficulty, yet by God's glory.

Avatar_small
full time maids in d 说:
2020年6月11日 16:22

you'll discover several of the major things it is advisable to consider before investing a cleaning service service. While it is never ever an inclusive guide, it should provide valuable beginning point in making a thought out decision.

Avatar_small
painting company in 说:
2020年6月11日 16:22

Leave it to lawyers to pinpoint the key difference between authentic - an actual guarantee that focuses on prevention, not clean-up, and requires the entire business to support it - and a interesting marketing trick.

Avatar_small
dial a maid dubai 说:
2021年6月13日 13:30

Floors hand wiped, cobwebs taken out, doors and also door casings spot washed, general dusting, surfaces cleaned. Counters cleaned, outside range lid cleaned, leading and top of array cleaned, spill pans/glass leading surfaces wiped, sinks washed and opera shined, fronts of most appliances washed, general dusting, cobwebs taken out, microwave damaged, doors and also door casings spot washed. <a href="https://dialamaid.ae/">dial a maid dubai</a>

Avatar_small
dial a maid dubai 说:
2021年6月13日 13:31

Floors hand wiped, cobwebs taken out, doors and also door casings spot washed, general dusting, surfaces cleaned. Counters cleaned, outside range lid cleaned, leading and top of array cleaned, spill pans/glass leading surfaces wiped, sinks washed and opera shined, fronts of most appliances washed, general dusting, cobwebs taken out, microwave damaged, doors and also door casings spot washed.
https://dialamaid.ae/


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter