public static function text($text, $options = array()) { $params = array("timestamp" => time(), "text" => $text); foreach (Uploader::$TEXT_PARAMS as $key) { $params[$key] = \Cloudinary::option_get($options, $key); } return Uploader::call_api("text", $params, $options); }
public function test_text() { $result = Uploader::text("hello world"); $this->assertGreaterThan(1, $result["width"]); $this->assertGreaterThan(1, $result["height"]); }