You are here

public function GroupsTest::testInvalidGroupsParameter 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::testInvalidGroupsParameter()

@expectedException \Symfony\Component\Serializer\Exception\InvalidArgumentException

File

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

Class

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

Namespace

Symfony\Component\Serializer\Tests\Annotation

Code

public function testInvalidGroupsParameter() {
  new Groups(array(
    'value' => array(
      'a',
      1,
      new \stdClass(),
    ),
  ));
}