summaryrefslogtreecommitdiff
path: root/plugins/af_readability/vendor/fivefilters/readability.php/test/TestPage.php
diff options
context:
space:
mode:
authorNils Gotzhein <[email protected]>2021-08-17 22:18:46 +0200
committerNils Gotzhein <[email protected]>2021-08-17 22:18:46 +0200
commitb6b6771d8d7dcf13938d1578099074b0123a5d5e (patch)
treeefd9e28718eff791dcaa7ffddbac44c38deedfb8 /plugins/af_readability/vendor/fivefilters/readability.php/test/TestPage.php
parenta73e3bec45c5523910c711cf882976b71781ac9e (diff)
pull latest readability-php via composer
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;
+ }
+}