summaryrefslogtreecommitdiff
path: root/plugins/af_readability/vendor/fivefilters/readability.php/test/TestPage.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/af_readability/vendor/fivefilters/readability.php/test/TestPage.php')
-rw-r--r--plugins/af_readability/vendor/fivefilters/readability.php/test/TestPage.php61
1 files changed, 61 insertions, 0 deletions
diff --git a/plugins/af_readability/vendor/fivefilters/readability.php/test/TestPage.php b/plugins/af_readability/vendor/fivefilters/readability.php/test/TestPage.php
new file mode 100644
index 000000000..ed6f92e7c
--- /dev/null
+++ b/plugins/af_readability/vendor/fivefilters/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;
+ }
+}