|
|
|
@ -5,7 +5,6 @@ namespace Tests\Readability; |
|
|
|
use Monolog\Handler\TestHandler; |
|
|
|
use Monolog\Handler\TestHandler; |
|
|
|
use Monolog\Logger; |
|
|
|
use Monolog\Logger; |
|
|
|
use Psr\Log\LoggerInterface; |
|
|
|
use Psr\Log\LoggerInterface; |
|
|
|
use Readability\JSLikeHTMLElement; |
|
|
|
|
|
|
|
use Readability\Readability; |
|
|
|
use Readability\Readability; |
|
|
|
|
|
|
|
|
|
|
|
class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
@ -78,8 +77,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertFalse($res); |
|
|
|
$this->assertFalse($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('Sorry, Readability was unable to parse this page for content.', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('Sorry, Readability was unable to parse this page for content.', $readability->getContent()->getInnerHtml()); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -90,8 +87,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is the awesome content :)', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is the awesome content :)', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -103,8 +98,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is the awesome content :)', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is the awesome content :)', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -116,8 +109,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is the awesome content :)', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is the awesome content :)', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -130,8 +121,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -146,8 +135,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -161,8 +148,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('<div readability=', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -175,8 +160,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertStringContainsString('alt="article"', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('alt="article"', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -189,8 +172,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('<aside>', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('<aside>', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -203,8 +184,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertStringContainsString('alt="article"', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('alt="article"', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -218,8 +197,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertStringContainsString('alt="article"', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('alt="article"', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -232,8 +209,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -244,8 +219,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -257,8 +230,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertEmpty($readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -270,8 +241,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertSame('this is my title', $readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertSame('this is my title', $readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -283,8 +252,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertSame('title2 - title3', $readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertSame('title2 - title3', $readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -296,8 +263,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertSame('title2 : title3', $readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertSame('title2 : title3', $readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -309,8 +274,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertSame('this is my h1 title !', $readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertSame('this is my h1 title !', $readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('This is an awesome text with some links, here there are', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringNotContainsString('This text is also an awesome text and you should know that', $readability->getContent()->getInnerHtml()); |
|
|
|
@ -356,8 +319,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
$this->assertStringContainsString('<iframe src="https://www.youtube.com/embed/PUep6xNeKjA" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"> </iframe>', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('<iframe src="https://www.youtube.com/embed/PUep6xNeKjA" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"> </iframe>', $readability->getContent()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('3D Touch', $readability->getTitle()->getInnerHtml()); |
|
|
|
$this->assertStringContainsString('3D Touch', $readability->getTitle()->getInnerHtml()); |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
@ -423,8 +384,6 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase |
|
|
|
$res = $readability->init(); |
|
|
|
$res = $readability->init(); |
|
|
|
|
|
|
|
|
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertTrue($res); |
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getContent()); |
|
|
|
|
|
|
|
$this->assertInstanceOf(JSLikeHTMLElement::class, $readability->getTitle()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function testPostFilters(): void |
|
|
|
public function testPostFilters(): void |
|
|
|
|