public function testSearch() { $response = self::$client->getSearchResult(new SearchRequest(['q' => 'アイカツ'])); $this->assertInstanceOf('\\Pixiv\\Entity\\Search', $response); $this->assertNotEmpty($response->getResponse()[0]->getId()); }