decode() public method

public decode ( $data )
Esempio n. 1
0
 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));
 }