Skip to content

Commit

Permalink
- Merge [3019].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed May 30, 2008
1 parent a65df9e commit d84b8aa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions PHPUnit/Framework/TestSuite.php
Expand Up @@ -465,11 +465,12 @@ public function count()
/**
* @param ReflectionClass $theClass
* @param string $name
* @param array $classGroups
* @return PHPUnit_Framework_Test
* @access public
* @static
*/
public static function createTest(ReflectionClass $theClass, $name)
public static function createTest(ReflectionClass $theClass, $name, array $classGroups = array())
{
$className = $theClass->getName();
$method = new ReflectionMethod($className, $name);
Expand Down Expand Up @@ -513,7 +514,7 @@ public static function createTest(ReflectionClass $theClass, $name)
// TestCase($name, $data)
else {
$data = PHPUnit_Util_Test::getProvidedData($className, $name);
$groups = PHPUnit_Util_Test::getGroups($method);
$groups = PHPUnit_Util_Test::getGroups($method, $classGroups);

if (is_array($data) || $data instanceof Iterator) {
$test = new PHPUnit_Framework_TestSuite(
Expand Down Expand Up @@ -761,7 +762,8 @@ protected function addTestMethod(ReflectionMethod $method, $groups, Array &$name
$this->addTest(
self::createTest(
$theClass,
$name
$name,
$groups
),
$groups
);
Expand Down

0 comments on commit d84b8aa

Please sign in to comment.