diff options
author | emkael <emkael@tlen.pl> | 2016-12-27 14:44:39 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-12-27 14:44:39 +0100 |
commit | 59bd9d51cc705dd44bdce753a56cc6ae914b02ce (patch) | |
tree | d61f42dccd15b1b630204c1575b4dedc1c98e9cf /http/codebird-php/test/codebirdt.php | |
parent | b76bf844db1f196e3fa709461fcb4706839744e5 (diff) |
* directory structure
Diffstat (limited to 'http/codebird-php/test/codebirdt.php')
-rw-r--r-- | http/codebird-php/test/codebirdt.php | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/http/codebird-php/test/codebirdt.php b/http/codebird-php/test/codebirdt.php deleted file mode 100644 index dd54dfc..0000000 --- a/http/codebird-php/test/codebirdt.php +++ /dev/null @@ -1,97 +0,0 @@ -<?php - -namespace Codebird; -require_once ('src/codebird.php'); - -/** - * A Twitter library in PHP. - * - * @package codebird-test - * @author Jublo Solutions <support@jublo.net> - * @copyright 2010-2016 Jublo Solutions <support@jublo.net> - * @license https://opensource.org/licenses/GPL-3.0 GNU General Public License 3.0 - * @link https://github.com/jublonet/codebird-php - */ - -/** - * Codebird testing class - * - * @package codebird-test - */ -class CodebirdT extends Codebird -{ - /** - * Returns properties - * - * @param string $property The property to get - * - * @return mixed Property - */ - public function get($property) - { - if (property_exists($this, $property)) { - return $this->$property; - } - throw new \Exception('Property ' . $property . ' is not defined.'); - } - - /** - * Returns static properties - * - * @param string $property The property to get - * - * @return mixed Property - */ - public function getStatic($property) - { - if (property_exists($this, $property)) { - return static::$$property; - } - throw new \Exception('Static property ' . $property . ' is not defined.'); - } - - /** - * Calls methods - * - * @param string $property The property to get - * - * @return mixed Property - */ - public function call($method, $params = [], &$params2 = null) - { - $methods_byref = [ - '_mapFnToApiMethod', - '_mapFnInlineParams', - '_detectMethod' - ]; - if (in_array($method, $methods_byref)) { - return $this->$method($params, $params2); - } - if (method_exists($this, $method)) { - return call_user_func_array([$this, $method], $params); - } - throw new \Exception('Method ' . $method . ' is not defined.'); - } - - /** - * Calls methods - * - * @param string $property The property to get - * - * @return mixed Property - */ - public function callStatic($method, $params = []) - { - if (function_exists([self, $method])) { - return call_user_func_array([self, $method], $params); - } - throw new \Exception('Static method ' . $method . ' is not defined.'); - } - - /** - * Streaming callback test - */ - public static function streamingCallbackTest() - { - } -} |