public function testReplyToConversation() { $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock(); $stub->method('post')->willReturn('foo'); $users = new IntercomConversations($stub); $this->assertEquals('foo', $users->replyToConversation("bar", [])); }