#!/usr/bin/env php
addLink();
timeout=0
cid=1
- 任务链接 @task #1
- 需求链接 @story #1
- Bug链接 @bug #1
- 无链接 @empty
*/
$repo = new repoTest();
$commentTask = 'Finish task #1.';
$commentStory = 'Effort story #1 Cost 1h.';
$commentBug = 'Fix bug #1.';
$commentElse = 'Anything else.';
r($repo->addLinkTest($commentTask, 'task')) && p() && e("task #1"); //任务链接
r($repo->addLinkTest($commentStory, 'story')) && p() && e("story #1"); //需求链接
r($repo->addLinkTest($commentBug, 'bug')) && p() && e("bug #1"); //Bug链接
r($repo->addLinkTest($commentElse, 'task')) && p() && e("empty"); //无链接