JamesMoss\Flywheel\Formatter\MarkdownTest::testDecoding PHP Method

testDecoding() public method

public testDecoding ( )
    public function testDecoding()
    {
        $formatter = new Markdown();
        $data = array('name' => 'Joe', 'age' => 21, 'employed' => true, 'body' => "Lorem ipsum dolor\nsit amet");
        $raw = file_get_contents(__DIR__ . '/fixtures/joe.md');
        $this->assertEquals($data, $formatter->decode($raw));
    }