public function testGetChannelById() { $channelId = 'UCk1SpWNzOs4MYmr0uICEntg'; $response = $this->youtube->getChannelById($channelId); $this->assertEquals('youtube#channel', $response->kind); $this->assertEquals($channelId, $response->id); $this->assertObjectHasAttribute('snippet', $response); $this->assertObjectHasAttribute('contentDetails', $response); $this->assertObjectHasAttribute('statistics', $response); }