/**
  * Test the handling of an invalid xml when calling user light.
  * @expectedException Culturefeed_ParseException
  */
 public function testGetUserLightInvalidXmlParseException()
 {
     $invalid_xml = file_get_contents(dirname(__FILE__) . '/data/user_light_invalid_xml.xml');
     $this->oauthClient->expects($this->once())->method('consumerGetAsXml')->with('user/light', array('email' => '*****@*****.**', 'homeZip' => ''))->will($this->returnValue($invalid_xml));
     $this->cultureFeed->getUserLightId('*****@*****.**', '');
 }