getCompanies() public method

Returns list of Companies.
See also: https://developers.intercom.io/reference#list-companies
public getCompanies ( array $options ) : mixed
$options array
return mixed
 public function testUserGet()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('get')->willReturn('foo');
     $companies = new IntercomCompanies($stub);
     $this->assertEquals('foo', $companies->getCompanies([]));
 }