summaryrefslogtreecommitdiff
path: root/plugins/af_readability/vendor/andreskrey/readability.php/test/TestPage.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-26 17:35:58 +0300
committerAndrew Dolgov <[email protected]>2021-02-26 17:35:58 +0300
commitcf1ede0ba8c687d9bfadf1c372546657968f1dd8 (patch)
tree3394cbf3d1cd60d4e1e42f8ef0aa88c4eef368b9 /plugins/af_readability/vendor/andreskrey/readability.php/test/TestPage.php
parent1baf8c521785ab4dc8f474fdd772280737c7e254 (diff)
pull latest readability-php via composer
Diffstat (limited to 'plugins/af_readability/vendor/andreskrey/readability.php/test/TestPage.php')
-rw-r--r--plugins/af_readability/vendor/andreskrey/readability.php/test/TestPage.php61
1 files changed, 61 insertions, 0 deletions
diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/test/TestPage.php b/plugins/af_readability/vendor/andreskrey/readability.php/test/TestPage.php
new file mode 100644
index 000000000..ed6f92e7c
--- /dev/null
+++ b/plugins/af_readability/vendor/andreskrey/readability.php/test/TestPage.php
@@ -0,0 +1,61 @@
+<?php
+
+namespace andreskrey\Readability\Test;
+
+class TestPage
+{
+ private $configuration;
+ private $sourceHTML;
+ private $expectedHTML;
+ private $expectedImages;
+ private $expectedMetadata;
+
+ public function __construct($configuration, $sourceHTML, $expectedHTML, $expectedImages, $expectedMetadata)
+ {
+ $this->configuration = $configuration;
+ $this->sourceHTML = $sourceHTML;
+ $this->expectedHTML = $expectedHTML;
+ $this->expectedImages = $expectedImages;
+ $this->expectedMetadata = $expectedMetadata;
+ }
+
+ /**
+ * @return array
+ */
+ public function getConfiguration()
+ {
+ return $this->configuration;
+ }
+
+ /**
+ * @return null
+ */
+ public function getSourceHTML()
+ {
+ return $this->sourceHTML;
+ }
+
+ /**
+ * @return null
+ */
+ public function getExpectedHTML()
+ {
+ return $this->expectedHTML;
+ }
+
+ /**
+ * @return mixed
+ */
+ public function getExpectedImages()
+ {
+ return $this->expectedImages;
+ }
+
+ /**
+ * @return \stdClass
+ */
+ public function getExpectedMetadata()
+ {
+ return $this->expectedMetadata;
+ }
+}