JamesMoss\Flywheel\Formatter\YAMLTest::testEncoding PHP 메소드

testEncoding() 공개 메소드

public testEncoding ( )
    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));
    }