You are here

public function GroupsTest::testGroupsParameters in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Annotation/GroupsTest.php \Symfony\Component\Serializer\Tests\Annotation\GroupsTest::testGroupsParameters()

File

vendor/symfony/serializer/Tests/Annotation/GroupsTest.php, line 45

Class

GroupsTest
@author Kévin Dunglas <dunglas@gmail.com>

Namespace

Symfony\Component\Serializer\Tests\Annotation

Code

public function testGroupsParameters() {
  $validData = array(
    'a',
    'b',
  );
  $groups = new Groups(array(
    'value' => $validData,
  ));
  $this
    ->assertEquals($validData, $groups
    ->getGroups());
}