public function testCanLookupByEin() { $api = new AdvancedSearch(getenv('ADVANCED_SEARCH_API_KEY')); if (!getenv('ADVANCED_SEARCH_API_KEY')) { $this->mockGuzzle($api->getHttpClient(), [$this->getMockJsonResponse('ein-lookup.json')]); } $result = $api->lookupEin('13-5661935'); $this->assertObjectHasAttribute('organization_name', $result); }