Permalink
Browse files

fixes #4, #5 - added the static keyword where applicable

  • Loading branch information...
1 parent e34869a commit d9d0fb98a12cea821df3573e67ce0dc41263be6e @n1k0 n1k0 committed Jan 19, 2010
Showing with 5 additions and 2 deletions.
  1. +1 −1 lib/Tweet.class.php
  2. +1 −1 lib/TweetCollection.class.php
  3. +3 −0 test/bin/prove.php
View
@@ -30,7 +30,7 @@ class Tweet extends TwitterEntity
$in_reply_to_screen_name,
$user;
- public function createFromArray(array $array = array())
+ static public function createFromArray(array $array = array())
{
$entity = new self();
@@ -9,7 +9,7 @@
*/
class TweetCollection extends TwitterEntity
{
- public function createFromJSON($json)
+ static public function createFromJSON($json)
{
$tweets = json_decode($json, true);
View
@@ -1,5 +1,8 @@
<?php
+
+error_reporting(E_ALL);
require_once(dirname(__FILE__).'/../../vendor/lime/lime.php');
+
$h = new lime_harness(new lime_output_color());
$h->base_dir = realpath(dirname(__FILE__).'/..');
$h->register(glob(dirname(__FILE__).'/../unit/*Test.php'));

0 comments on commit d9d0fb9

Please sign in to comment.