public function testNoteCreate() { $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock(); $stub->method('post')->willReturn('foo'); $notes = new IntercomNotes($stub); $this->assertEquals('foo', $notes->create([])); }