示例#1
0
 public function testYFMInMarkdown()
 {
     $e = new Example('example/hello.md');
     $this->assertEquals($e->desc(), 'Hello');
     $this->assertEquals($e->code(), 'ls');
     $this->assertEquals($e->file_id(), 'hello.md');
     $this->assertEquals($e->id(), 7);
     $this->assertEquals($e->ft(), 'lisp');
     $this->assertEquals($e->url(), '/example/hello.md');
 }