You are here

public function SerializerTest::testDenormalizeNoMatch in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/serializer/Tests/SerializerTest.php \Symfony\Component\Serializer\Tests\SerializerTest::testDenormalizeNoMatch()

@expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException

File

vendor/symfony/serializer/Tests/SerializerTest.php, line 71

Class

SerializerTest

Namespace

Symfony\Component\Serializer\Tests

Code

public function testDenormalizeNoMatch() {
  $this->serializer = new Serializer(array(
    $this
      ->getMock('Symfony\\Component\\Serializer\\Normalizer\\CustomNormalizer'),
  ));
  $this->serializer
    ->denormalize('foo', 'stdClass');
}