Continue with the mtn interface tests

- test getRepositorySize() with a test file
- implement tests for inTags(), inBranches(), getFile(),
  getCommit() and getExtraProperties()
- mark the static methods as untestable
This commit is contained in:
Thomas Keller
2011-04-14 00:48:36 +02:00
parent 67b80ee11c
commit b3368071ac
3 changed files with 160 additions and 22 deletions

View File

@@ -668,7 +668,7 @@ class IDF_Scm_Monotone extends IDF_Scm
{
$revs = $this->_resolveSelector($commit);
if (count($revs) == 0)
return array();
return false;
$res = array();
@@ -676,6 +676,7 @@ class IDF_Scm_Monotone extends IDF_Scm
$res['parents'] = preg_split("/\n/", $parents, -1, PREG_SPLIT_NO_EMPTY);
$certs = $this->_getCerts($revs[0]);
// FIXME: this assumes that author, date and changelog are always given
$res['author'] = implode(', ', $certs['author']);