public function testLeadPath() { $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock(); $leads = new IntercomLeads($stub); $this->assertEquals($leads->leadPath("foo"), "contacts/foo"); }