TestNG-style Grouping of Tests in PHPUnit 3.2
Starting with version 3.2, PHPUnit has support for TestNG-style
@grouping of tests:<?php
class TestTest extends PHPUnit_Framework_TestCase
{
/**
* @group a
*/
public function testOne()
{
}
/**
* @group a
* @group b
*/
public function testTwo()
{
}
}
?>
--group with the TextUI test runner: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)
0 Comments to "TestNG-style Grouping of Tests in PHPUnit 3.2"
1 Trackback to "TestNG-style Grouping of Tests in PHPUnit 3.2"
Add Comment