Improve unit tests
This commit is contained in:
@@ -16,7 +16,7 @@ class Doc extends Base
|
||||
{
|
||||
$url = $this->helper->url;
|
||||
$data = file_get_contents($filename);
|
||||
list($title,, $content) = explode("\n", $data, 3);
|
||||
list($title,) = explode("\n", $data, 2);
|
||||
|
||||
$replaceUrl = function (array $matches) use ($url) {
|
||||
return '('.$url->to('doc', 'show', array('file' => str_replace('.markdown', '', $matches[1]))).')';
|
||||
|
||||
Reference in New Issue
Block a user