buildSiteConfig() public méthode

Returns SiteConfig instance (joined in order: exact match, wildcard, fingerprint, global, default).
public buildSiteConfig ( string $url, string $html = '', boolean $addToCache = true ) : SiteConfig
$url string
$html string
$addToCache boolean
Résultat Graby\SiteConfig\SiteConfig
 /**
  * Test both fingerprint and custom SiteConfig for wordpress.
  */
 public function testWithFingerPrints()
 {
     $contentExtractor = new ContentExtractor(self::$contentExtractorConfig);
     $res = $contentExtractor->buildSiteConfig('https://en.blog.wordpress.com/2015/03/23/writing-101-registration/', '<html><meta name="generator" content="WordPress.com" /></html>');
     foreach (array('title', 'body', 'strip', 'strip_id_or_class', 'strip_image_src') as $value) {
         $this->assertGreaterThan(0, count($res->{$value}), 'Check count XPatch for: ' . $value);
     }
 }