public function testNotesGet() { $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock(); $stub->method('get')->will($this->returnArgument(0)); $notes = new IntercomNotes($stub); $this->assertEquals('notes/foo', $notes->getNote("foo")); }