diff --git a/tests/ReadabilityTest.php b/tests/ReadabilityTest.php index 42f952a..12d5529 100644 --- a/tests/ReadabilityTest.php +++ b/tests/ReadabilityTest.php @@ -106,7 +106,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testInitDiv() { $readability = $this->getReadability('
' . str_repeat('This is the awesome content :)', 7) . '
', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -120,7 +119,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testWithFootnotes() { $readability = $this->getReadability('
' . str_repeat('

This is an awesome text with some links, here there are: the awesome

', 7) . '
', 'http://0.0.0.0'); - $readability->debug = true; $readability->convertLinksToFootnotes = true; $res = $readability->init(); @@ -137,7 +135,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testStandardClean() { $readability = $this->getReadability('

Title

' . str_repeat('

This is an awesome text with some links, here there are: the awesome

', 7) . 'will NOT be removed
', 'http://0.0.0.0'); - $readability->debug = true; $readability->lightClean = false; $res = $readability->init(); @@ -154,7 +151,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testWithIframe() { $readability = $this->getReadability('

Title

' . str_repeat('

This is an awesome text with some links, here there are: the awesome

', 7) . '

This is an awesome text with some links, here there are

', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -169,7 +165,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testWithArticle() { $readability = $this->getReadability('

' . str_repeat('This is an awesome text with some links, here there are: the awesome', 20) . '

This is an awesome text with some links, here there are

', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -184,7 +179,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testWithAside() { $readability = $this->getReadability('
' . str_repeat('

This is an awesome text with some links, here there are: the awesome

', 7) . '
', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -199,7 +193,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testWithClasses() { $readability = $this->getReadability('
' . str_repeat('

This is an awesome text with some links, here there are: the awesome

', 7) . '
' . str_repeat('

This text should be removed

', 10) . '
', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -214,7 +207,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testWithClassesWithoutLightClean() { $readability = $this->getReadability('
' . str_repeat('

This is an awesome text with some links, here there are: the awesome

', 7) . '
' . str_repeat('

This text should be removed

', 10) . '
', 'http://0.0.0.0'); - $readability->debug = true; $readability->lightClean = false; $res = $readability->init(); @@ -230,7 +222,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testWithTd() { $readability = $this->getReadability('' . str_repeat('', 7) . '

This is an awesome text with some links, here there are the awesome

', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -243,7 +234,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testWithSameClasses() { $readability = $this->getReadability('
' . str_repeat('

This is an awesome text with some links, here there are the awesome

', 7) . '
This text is also an awesome text and you should know that !
', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -257,7 +247,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testWithScript() { $readability = $this->getReadability('
' . str_repeat('

This is an awesome text with some links, here there are the awesome

', 7) . '

', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -271,7 +260,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testTitle() { $readability = $this->getReadability('this is my title
' . str_repeat('

This is an awesome text with some links, here there are the awesome

', 7) . '

', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -285,7 +273,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testTitleWithDash() { $readability = $this->getReadability(' title2 - title3
' . str_repeat('

This is an awesome text with some links, here there are the awesome

', 7) . '

', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -299,7 +286,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testTitleWithDoubleDot() { $readability = $this->getReadability(' title2 : title3
' . str_repeat('

This is an awesome text with some links, here there are the awesome

', 7) . '

', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -313,7 +299,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase public function testTitleTooShortUseH1() { $readability = $this->getReadability('too short

this is my h1 title !

' . str_repeat('

This is an awesome text with some links, here there are the awesome

', 7) . '

', 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -365,7 +350,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase '; $readability = $this->getReadability($data, 'http://iosgames.ru/?p=22030'); - $readability->debug = true; $res = $readability->init(); @@ -433,7 +417,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase '; $readability = $this->getReadability($data, 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); @@ -472,7 +455,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase $html = file_get_contents('tests/fixtures/childNodeGoesNull.html'); $readability = $this->getReadability($html, 'http://0.0.0.0'); - $readability->debug = true; $readability->convertLinksToFootnotes = true; $res = $readability->init(); @@ -485,7 +467,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase $html = file_get_contents('tests/fixtures/keepFootnotes.html'); $readability = $this->getReadability($html, 'http://0.0.0.0'); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res); @@ -499,7 +480,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase $html = file_get_contents('tests/fixtures/wipedBody.html'); $readability = $this->getReadability($html, 'http://0.0.0.0', 'libxml', false); - $readability->debug = true; $res = $readability->init(); $this->assertTrue($res);