//$oTCH->RegisterMethodWithReturn("SearchIssues", array($sUser, $sRepo, $sState, $sSearchTerm));
$sState = CGithubIssueStates::sOpen;
$oTCH->RegisterMethodWithReturn("ListIssues", array($sUser, $sRepo, $sState));
//$iNumber = 2;
//$oTCH->RegisterMethodWithReturn("ViewIssue", array($sUser, $sRepo, $iNumber));
//$iNumber = 5;
//$oTCH->RegisterMethodWithReturn("ListCommentsByIssue", array($sUser, $sRepo, $iNumber));
$sTitle = "Test open issue 100 Title";
$sBody = "Test open issue 100";
$oTCH->RegisterMethodWithReturn("OpenIssue", array($sUser, $sRepo, $sTitle, $sBody));
//$iNumber = 10;
//$oTCH->RegisterMethodWithReturn("CloseIssue", array($sUser, $sRepo, $iNumber));
//$iNumber = 6;
//$oTCH->RegisterMethodWithReturn("ReOpenIssue", array($sUser, $sRepo, $iNumber));
//$iNumber = 7;
//$sTitle = "Editing test";
//$sBody = "TestEditingTestEditingTestEditingTestEditingTestEditing";
//$oTCH->RegisterMethodWithReturn("EditIssue", array($sUser, $sRepo, $iNumber, $sTitle, $sBody));
$oTCH->RegisterMethodWithReturn("ListLabels", array($sUser, $sRepo));
$sLabel = "Label12";
$iNumber = 12;
$oTCH->RegisterMethodWithReturn("AddLabel", array($sUser, $sRepo, $sLabel, $iNumber));
//$sLabel = "Label3";
//$iNumber = "3";
//$oTCH->RegisterMethodWithReturn("RemoveLabel", array($sUser, $sRepo, $sLabel, $iNumber));
$iNumber = 12;
$sComment = "Test Comment";
$oTCH->RegisterMethodWithReturn("CommentOnIssue", array($sUser, $sRepo, $iNumber, $sComment));
$oTCH->RunTestMap();
echo "Number of API requests: " . CGithubAPICallLimitator::$_iCounter . "<br />";
echo "Elapsed time since first request: " . CGithubAPICallLimitator::$_iElapsedTime . "<br />";