You are here

public function PropertyNormalizerTest::testCallbacks in Zircon Profile 8

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

@dataProvider provideCallbacks

File

vendor/symfony/serializer/Tests/Normalizer/PropertyNormalizerTest.php, line 162

Class

PropertyNormalizerTest

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

public function testCallbacks($callbacks, $value, $result, $message) {
  $this->normalizer
    ->setCallbacks($callbacks);
  $obj = new PropertyConstructorDummy('', $value);
  $this
    ->assertEquals($result, $this->normalizer
    ->normalize($obj, 'any'), $message);
}