Example #1
0
 /**
  *
  */
 public function testMetaMixed2()
 {
     Chrome::clearMetadata();
     $this->assertEquals(0, count(Chrome::getMetadata()));
     $this->assertEquals(0, count(Chrome::getMetadata(true)));
     Chrome::addMetadata('refresh', '60', true);
     $this->assertEquals(0, count(Chrome::getMetadata()));
     $this->assertEquals(1, count(Chrome::getMetadata(true)));
     Chrome::addMetadata('generator', 'Jerity');
     $this->assertEquals(1, count(Chrome::getMetadata()));
     $this->assertEquals(1, count(Chrome::getMetadata(true)));
     Chrome::clearMetadata(false);
     $this->assertEquals(0, count(Chrome::getMetadata()));
     $this->assertEquals(1, count(Chrome::getMetadata(true)));
     Chrome::clearMetadata(true);
     $this->assertEquals(0, count(Chrome::getMetadata()));
     $this->assertEquals(0, count(Chrome::getMetadata(true)));
 }