Merge pull request #36 from Kdecherf/failing-test

tests: fix possible typo in testPostFilters() leading to failure
pull/43/head
Jérémy Benoist 7 years ago committed by GitHub
commit bbe9021fe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tests/ReadabilityTest.php

@ -445,7 +445,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
public function testPostFilters()
{
$readability = $this->getReadability('<div>' . str_repeat('<p>This <b>is</b> the awesome content :)</p>', 10) . '</div>', 'http://0.0.0.0');
$readability = $this->getReadability('<div>' . str_repeat('<p>This <strong>is</strong> the awesome content :)</p>', 10) . '</div>', 'http://0.0.0.0');
$readability->addPostFilter('!<strong[^>]*>(.*?)</strong>!is', '');
$res = $readability->init();

Loading…
Cancel
Save