Example #1
0
 /**
  *
  */
 public function testCustomLinkRender()
 {
     Chrome::clearLinks();
     Chrome::addLink('next', 'http://www.jerity.com/next');
     Chrome::addLink('author', 'mailto:info@jerity.com', true);
     ob_start();
     Chrome::outputLinkTags();
     $d = ob_get_clean();
     $this->assertContains('<link rel="next" href="http://www.jerity.com/next">', $d);
     $this->assertContains('<link rev="author" href="mailto:info@jerity.com">', $d);
 }
Example #2
0
 /**
  *
  */
 public function testCustomRevLink()
 {
     Chrome::clearLinks();
     $this->assertEquals(0, count(Chrome::getLinks()));
     Chrome::addLink('author', 'mailto:info@jerity.com', true);
     $l = Chrome::getLinks();
     $this->assertTrue(is_array($l));
     $this->assertEquals(1, count($l));
     $this->assertEquals(2, count($l[0]));
     $this->assertEquals('author', $l[0]['rev']);
     $this->assertEquals('mailto:info@jerity.com', $l[0]['href']);
 }