/** * Tests the JWeb::getHeaders method. * * @return void * * @since 11.3 */ public function testGetHeaders() { // Fill the header body with an arbitrary value. $this->inspector->setClassProperty('response', (object) array('cachable' => null, 'headers' => array('ok'), 'body' => null)); $this->assertThat($this->inspector->getHeaders(), $this->equalTo(array('ok')), 'Checks the headers part of the response is returned correctly.'); }