示例#1
0
 /**
  * Tests the JWeb::clearHeaders method.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function testClearHeaders()
 {
     // Fill the header array with an arbitrary value.
     $this->inspector->setClassProperty('response', (object) array('cachable' => null, 'headers' => array('foo'), 'body' => array()));
     $this->inspector->clearHeaders();
     $this->assertThat($this->inspector->getClassProperty('response')->headers, $this->equalTo(array()), 'Checks the headers were cleared.');
 }