Merge pull request #304 from h4cc/patch-2-squashed

Use only JMS/GroupExclusion if groups are there
This commit is contained in:
William Durand 2013-12-28 02:30:51 -08:00
commit f65a9c9965
2 changed files with 11 additions and 1 deletions

View File

@ -98,7 +98,9 @@ class JmsMetadataParser implements ParserInterface
} }
$exclusionStrategies = array(); $exclusionStrategies = array();
$exclusionStrategies[] = new GroupsExclusionStrategy($groups); if ($groups) {
$exclusionStrategies[] = new GroupsExclusionStrategy($groups);
}
$params = array(); $params = array();

View File

@ -169,6 +169,14 @@ class JmsMetadataParserTest extends \PHPUnit_Framework_TestCase
'sinceVersion' => null, 'sinceVersion' => null,
'untilVersion' => null, 'untilVersion' => null,
), ),
'baz' => array(
'dataType' => 'string',
'required' => false,
'description' => null,
'readonly' => false,
'sinceVersion' => null,
'untilVersion' => null,
),
), ),
$output $output
); );