tags() публичный Метод

public tags ( $options = [] )
Пример #1
0
 function test11_tags_prefix()
 {
     // should allow listing tag by prefix
     Curl::mockApi($this);
     $this->api->tags(array("prefix" => "fooba"));
     assertUrl($this, "/tags/image");
     assertGet($this);
     assertParam($this, "prefix", "fooba");
 }
 function test11_tags_prefix()
 {
     // should allow listing tag by prefix
     $result = $this->api->tags(array("prefix" => "api_test"));
     $tags = $result["tags"];
     $this->assertContains("api_test_tag", $tags);
     $result = $this->api->tags(array("prefix" => "api_test_no_such_tag"));
     $tags = $result["tags"];
     $this->assertEquals(count($tags), 0);
 }