ソースを参照

github update

dereuromark 15 年 前
コミット
131dd570c9
2 ファイル変更6 行追加3 行削除
  1. 6 0
      libs/github_lib.php
  2. 0 3
      tests/cases/libs/github_lib.test.php

+ 6 - 0
libs/github_lib.php

@@ -2,6 +2,12 @@
 
 /**
  * access to github
+ *
+ * derived from Philip Sturgeon
+ *
+ * @author Mark Scherer
+ * @info http://develop.github.com/
+ * 2010-06-24 ms
  */
 class GithubLib {
 

+ 0 - 3
tests/cases/libs/github_lib.test.php

@@ -5,8 +5,6 @@ App::import('Lib', 'Tools.GithubLib');
 class GithubLibTestCase extends CakeTestCase {
 
 	function setUp() {
-		Configure::write('debug', 1);
-
 		$this->GithubLib = new GithubLib();
 		$this->assertTrue(is_object($this->GithubLib));
 	}
@@ -20,7 +18,6 @@ class GithubLibTestCase extends CakeTestCase {
 		$is = $this->GithubLib->_fetch($url);
 		echo returns($is);
 		$this->assertFalse($is); // 401
-		//$this->assertTrue(!empty($is));
 
 		$url = 'http://github.com/api/';
 		$is = $this->GithubLib->_fetch($url);