/** * @expectedException \Sabre\DAV\Exception * @expectedExceptionMessage Principal not found */ public function testGetGroupMemberSetEmpty() { $this->userManager->expects($this->once())->method('get')->with('foo')->will($this->returnValue(null)); $this->connector->getGroupMemberSet('principals/users/foo'); }