You are here

public function GetSetMethodNormalizerTest::testConstructorDenormalizeWithVariadicArgument in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php \Symfony\Component\Serializer\Tests\Normalizer\GetSetMethodNormalizerTest::testConstructorDenormalizeWithVariadicArgument()

@requires PHP 5.6

File

vendor/symfony/serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php, line 225

Class

GetSetMethodNormalizerTest

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

public function testConstructorDenormalizeWithVariadicArgument() {
  $obj = $this->normalizer
    ->denormalize(array(
    'foo' => array(
      1,
      2,
      3,
    ),
  ), 'Symfony\\Component\\Serializer\\Tests\\Fixtures\\VariadicConstructorArgsDummy', 'any');
  $this
    ->assertEquals(array(
    1,
    2,
    3,
  ), $obj
    ->getFoo());
}