Source of file YamlSerializerTest.php
Size: 0,652 Bytes - Last Modified: 2021-12-23T10:07:36+00:00
/var/www/docs.ssmods.com/process/src/tests/unittests/serializers/YamlSerializerTest.php
12345678910111213141516171819202122232425262728293031 | <?php namespace Ntb\RestAPI; use SapphireTest; /** * Tests for the yaml serializer. * @author Christian Blank <c.blank@notthatbad.net> */ class YamlSerializerTest extends SapphireTest { /** * @var YamlSerializer */ private $serializer; public function setUp() { parent::setUp(); $this->serializer = new YamlSerializer(); } public function testContentType() { $this->assertEquals('application/yaml', $this->serializer->contentType()); } public function testSerialize() { $this->assertTrue(is_string($this->serializer->serialize(['data' => ['a' => 1, 'b' => 2]]))); } } |