コード例 #1
0
 public function testSearch()
 {
     $limit = rand(3, 10);
     $response = $this->youtube->search('Android', $limit);
     $this->assertEquals($limit, count($response));
     $this->assertEquals('youtube#searchResult', $response[0]->kind);
 }