Skip to content

Instantly share code, notes, and snippets.

@sandermarechal
Created July 18, 2011 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandermarechal/1089631 to your computer and use it in GitHub Desktop.
Save sandermarechal/1089631 to your computer and use it in GitHub Desktop.
PHPUnit Group Bugs
<?php
/**
* @group bar
*/
class BarTest extends PHPUnit_Framework_TestCase
{
/**
* @dataProvider spit
*/
public function testBar()
{
$this->assertEquals(1, 1);
}
public function spit()
{
return array();
}
}
<?php
/**
* @group foo
*/
class FooTest extends PHPUnit_Framework_TestCase
{
public function testFoo()
{
$this->assertEquals(1, 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment