/** * Complete */ public function testSetHeaders() { // check for the correct exception when missing offset $headers = $this->headers; unset($headers[0]['offset']); $caught = false; try { $this->object->setHeaders($headers); } catch (Exception $expected) { $caught = true; } if (!$caught) { $this->fail('Missing "offset" was not caught'); } }