JamesMoss\Flywheel\Formatter\YAMLTest::testDecoding PHP Метод

testDecoding() публичный Метод

public testDecoding ( )
    public function testDecoding()
    {
        $formatter = new YAML();
        $data = array('name' => 'Joe', 'age' => 21, 'employed' => true);
        $raw = file_get_contents(__DIR__ . '/fixtures/joe.yaml');
        $this->assertEquals($data, $formatter->decode($raw));
    }