Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge [3236].

  • Loading branch information...
commit 487e7c355537e33b76ff8245644e0b7dd62a1070 1 parent 4cd8978
@sebastianbergmann authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 PHPUnit/Util/Test.php
View
4 PHPUnit/Util/Test.php
@@ -188,7 +188,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]));
}
@@ -208,7 +208,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);
Please sign in to comment.
Something went wrong with that request. Please try again.