/** * Tests the JWeb::sendHeaders method. * * @return void * * @since 11.3 */ public function testSendHeaders() { // Similulate a previous call to a setHeader method. $this->inspector->getClassProperty('response')->headers = array(array('name' => 'Status', 'value' => 200), array('name' => 'X-JWeb-SendHeaders', 'value' => 'foo')); $this->assertThat($this->inspector->sendHeaders(), $this->identicalTo($this->inspector), 'Check chaining.'); $this->assertThat($this->inspector->headers, $this->equalTo(array(array('Status: 200', null, 200), array('X-JWeb-SendHeaders: foo', true, null)))); }