Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added lists_trends patch from nocontents@gmail.com in lists_trends br…
…anch for review git-svn-id: http://svn.php.net/repository/pear/packages/Services_Twitter/branches/lists_trends@300014 c90b9560-bf6c-de11-be94-00142212c4b1
- Loading branch information
Bill Shupp
committed
Jun 1, 2010
1 parent
6874efe
commit 34548a5
Showing
38 changed files
with
470 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
lists-list | ||
--FILE-- | ||
<?php | ||
|
||
require_once dirname(__FILE__) . '/setup.php'; | ||
|
||
try { | ||
$twitter = Services_Twitter_factory('lists/list'); | ||
$list = $twitter->lists->list(array('user' => $config['user'])); | ||
var_dump($list instanceof stdclass && is_array($list->lists)); | ||
} catch (Services_Twitter_Exception $exc) { | ||
echo $exc . "\n"; | ||
} | ||
|
||
?> | ||
--EXPECT-- | ||
bool(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
lists-update | ||
--FILE-- | ||
<?php | ||
|
||
require_once dirname(__FILE__) . '/setup.php'; | ||
|
||
try { | ||
$twitter = Services_Twitter_factory('lists/update'); | ||
$list = $twitter->lists->update(array('user' => $config['user'], 'id' => $config['list_slug'], 'mode' => 'private')); | ||
var_dump($list instanceof stdclass && is_int($list->id)); | ||
} catch (Services_Twitter_Exception $exc) { | ||
echo $exc . "\n"; | ||
} | ||
|
||
?> | ||
--EXPECT-- | ||
bool(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
lists-show | ||
--FILE-- | ||
<?php | ||
|
||
require_once dirname(__FILE__) . '/setup.php'; | ||
|
||
try { | ||
$twitter = Services_Twitter_factory('lists/show'); | ||
$list = $twitter->lists->show(array('user' => $config['user'], 'id' => $config['list_slug'])); | ||
var_dump($list instanceof stdclass && is_int($list->id)); | ||
} catch (Services_Twitter_Exception $exc) { | ||
echo $exc . "\n"; | ||
} | ||
|
||
?> | ||
--EXPECT-- | ||
bool(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
lists-create-delete | ||
--FILE-- | ||
<?php | ||
|
||
require_once dirname(__FILE__) . '/setup.php'; | ||
|
||
try { | ||
$twitter = Services_Twitter_factory('lists/create'); | ||
$list = $twitter->lists->create(array('user' => $config['user'], 'name' => $config['list_name'])); | ||
var_dump($list instanceof stdclass && is_int($list->id)); | ||
$twitter = Services_Twitter_factory('lists/delete'); | ||
$delete = $twitter->lists->delete(array('user' => $config['user'], 'id' => $list->id)); | ||
var_dump($delete instanceof stdclass && is_int($delete->id)); | ||
} catch (Services_Twitter_Exception $exc) { | ||
echo $exc . "\n"; | ||
} | ||
|
||
?> | ||
--EXPECT-- | ||
bool(true) | ||
bool(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
lists-statuses | ||
--FILE-- | ||
<?php | ||
|
||
require_once dirname(__FILE__) . '/setup.php'; | ||
|
||
try { | ||
$twitter = Services_Twitter_factory('lists/statuses'); | ||
$response = $twitter->lists->statuses(array('user' => $config['user'], 'list_id' => $config['list_slug'])); | ||
var_dump(is_array($response)); | ||
} catch (Services_Twitter_Exception $exc) { | ||
echo $exc . "\n"; | ||
} | ||
|
||
?> | ||
--EXPECT-- | ||
bool(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
lists-memberships | ||
--FILE-- | ||
<?php | ||
|
||
require_once dirname(__FILE__) . '/setup.php'; | ||
|
||
try { | ||
$twitter = Services_Twitter_factory('lists/memberships'); | ||
$response = $twitter->lists->memberships(array('user' => $config['user'], 'list_id' => $config['list_slug'])); | ||
var_dump($response instanceof stdclass && is_array($response->lists)); | ||
} catch (Services_Twitter_Exception $exc) { | ||
echo $exc . "\n"; | ||
} | ||
|
||
?> | ||
--EXPECT-- | ||
bool(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
lists-subscriptions | ||
--FILE-- | ||
<?php | ||
|
||
require_once dirname(__FILE__) . '/setup.php'; | ||
|
||
try { | ||
$twitter = Services_Twitter_factory('lists/subscriptions'); | ||
$response = $twitter->lists->subscriptions(array('user' => $config['user'])); | ||
var_dump($response instanceof stdclass && is_array($response->lists)); | ||
} catch (Services_Twitter_Exception $exc) { | ||
echo $exc . "\n"; | ||
} | ||
|
||
?> | ||
--EXPECT-- | ||
bool(true) |
Oops, something went wrong.