Exemplo n.º 1
0
 /**
  * @covers ::getMeta
  */
 public function testGetMetaNoCache()
 {
     $parser = $this->getMock('hypeJunction\\Scraper\\Parser');
     $parser->expects($this->any())->method('getMetadata')->willReturn(array('title' => 'Foo'));
     $this->object->expects($this->any())->method('getParser')->willReturn($parser);
     $this->object->setURL('http://localhost/url3');
     $this->assertInstanceOf('hypeJunction\\Scraper\\MetaHandler', $this->object->getMeta(false));
 }
Exemplo n.º 2
0
Arquivo: Embedder.php Projeto: n8b/VMN
 /**
  * Get meta tags parsed from URL
  * @return MetaHandler
  */
 public function getMeta()
 {
     return $this->url->getMeta();
 }
Exemplo n.º 3
0
Arquivo: Url.php Projeto: n8b/VMN
 /**
  * Get URL page title
  * @return string
  */
 public function getQualifier()
 {
     $meta = $this->url->getMeta();
     return $meta->title ? $meta->title : $this->url->getUrl();
 }