public function YamlTest::testEncode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlTest::testEncode()
@covers ::encode
File
- core/
tests/ Drupal/ Tests/ Component/ Serialization/ YamlTest.php, line 49 - Contains \Drupal\Tests\Component\Serialization\YamlTest.
Class
- YamlTest
- @coversDefaultClass \Drupal\Component\Serialization\Yaml @group Serialization
Namespace
Drupal\Tests\Component\SerializationCode
public function testEncode() {
$decoded = array(
'foo' => 'bar',
);
$this
->assertSame('foo: bar' . "\n", Yaml::encode($decoded));
}