You are here

public function CustomNormalizerTest::testSupportsDenormalization in Zircon Profile 8

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

File

vendor/symfony/serializer/Tests/Normalizer/CustomNormalizerTest.php, line 63

Class

CustomNormalizerTest

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

public function testSupportsDenormalization() {
  $this
    ->assertTrue($this->normalizer
    ->supportsDenormalization(array(), 'Symfony\\Component\\Serializer\\Tests\\Fixtures\\ScalarDummy'));
  $this
    ->assertFalse($this->normalizer
    ->supportsDenormalization(array(), 'stdClass'));
  $this
    ->assertTrue($this->normalizer
    ->supportsDenormalization(array(), 'Symfony\\Component\\Serializer\\Tests\\Fixtures\\DenormalizableDummy'));
}