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