tests: fix possible typo in testPostFilters() leading to failure

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
pull/36/head
Kevin Decherf 9 years ago
parent 276684ab6d
commit 3a7350a8a7
  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