Пример #1
0
 /**
  *
  */
 public function testHTTPHeader3()
 {
     Chrome::clearHeaders();
     $this->assertEquals(0, count(Chrome::getHeaders()));
     Chrome::addHeader('X-Test', '1, 2, 3.');
     $h = Chrome::getHeaders();
     $this->assertEquals(1, count($h));
     $this->assertEquals(1, count($h['X-Test']));
     Chrome::addHeader('X-Test', '4, 5, 6.', false);
     $h = Chrome::getHeaders();
     $this->assertEquals(1, count($h));
     $this->assertEquals(2, count($h['X-Test']));
     Chrome::removeHeader('X-Test', '1, 2, 3.');
     $this->assertEquals(1, count(Chrome::getHeaders()));
 }