Skip to content

Commit

Permalink
Merge [3236].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jun 19, 2008
1 parent 8ce097d commit 98784fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PHPUnit/Util/Test.php
Expand Up @@ -186,7 +186,7 @@ public static function getGroups(Reflector $reflector, array $groups = array())
{
$docComment = $reflector->getDocComment();

if (preg_match_all('/@group[\s]+([\.\w]+)/', $docComment, $matches)) {
if (preg_match_all('/@group\s+([a-zA-Z0-9._-]+)/', $docComment, $matches)) {
$groups = array_unique(array_merge($groups, $matches[1]));
}

Expand All @@ -206,7 +206,7 @@ public static function getProvidedData($className, $methodName)
$method = new ReflectionMethod($className, $methodName);
$docComment = $method->getDocComment();

if (preg_match('/@dataProvider[\s]+([:\.\w]+)/', $docComment, $matches)) {
if (preg_match('/@dataProvider\s+([a-zA-Z0-9._:-]+)/', $docComment, $matches)) {
try {
$dataProvider = explode('::', $matches[1]);
$dataProviderMethodName = array_pop($dataProvider);
Expand Down

0 comments on commit 98784fd

Please sign in to comment.