Esempio 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));
 }
Esempio n. 2
0
File: Embedder.php Progetto: n8b/VMN
 /**
  * Get meta tags parsed from URL
  * @return MetaHandler
  */
 public function getMeta()
 {
     return $this->url->getMeta();
 }
Esempio n. 3
0
File: Url.php Progetto: n8b/VMN
 /**
  * Get URL page title
  * @return string
  */
 public function getQualifier()
 {
     $meta = $this->url->getMeta();
     return $meta->title ? $meta->title : $this->url->getUrl();
 }