public function ObjectNormalizerTest::testCallbacks in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Normalizer/ObjectNormalizerTest.php \Symfony\Component\Serializer\Tests\Normalizer\ObjectNormalizerTest::testCallbacks()
@dataProvider provideCallbacks
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ ObjectNormalizerTest.php, line 285
Class
- ObjectNormalizerTest
- @author Kévin Dunglas <dunglas@gmail.com>
Namespace
Symfony\Component\Serializer\Tests\NormalizerCode
public function testCallbacks($callbacks, $value, $result, $message) {
$this->normalizer
->setCallbacks($callbacks);
$obj = new ObjectConstructorDummy('', $value, true);
$this
->assertEquals($result, $this->normalizer
->normalize($obj, 'any'), $message);
}