You are here

public function PropertyNormalizerTest::testUncallableCallbacks 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::testUncallableCallbacks()

@expectedException \InvalidArgumentException

File

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

Class

PropertyNormalizerTest

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

public function testUncallableCallbacks() {
  $this->normalizer
    ->setCallbacks(array(
    'bar' => null,
  ));
  $obj = new PropertyConstructorDummy('baz', 'quux');
  $this->normalizer
    ->normalize($obj, 'any');
}