public function SerializerTest::testSerializeScalar in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/SerializerTest.php \Symfony\Component\Serializer\Tests\SerializerTest::testSerializeScalar()
File
- vendor/
symfony/ serializer/ Tests/ SerializerTest.php, line 104
Class
Namespace
Symfony\Component\Serializer\TestsCode
public function testSerializeScalar() {
$this->serializer = new Serializer(array(), array(
'json' => new JsonEncoder(),
));
$result = $this->serializer
->serialize('foo', 'json');
$this
->assertEquals('"foo"', $result);
}