public function testEncoding() { $formatter = new YAML(); $data = array('name' => 'Joe', 'age' => 21, 'employed' => true); $content = $this->normalizeLineendings(file_get_contents(__DIR__ . '/fixtures/joe.yaml')); $this->assertSame($content, $formatter->encode($data)); }