summaryrefslogtreecommitdiff
path: root/test/TestPage.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2019-05-26 11:56:58 +0100
committerAndres Rey <[email protected]>2019-05-26 11:56:58 +0100
commit02b9c23c4062884695c7a0b9fd911c5c756927d4 (patch)
tree58baf8183a0b447aa39e6a7858ea85c98f0d59cb /test/TestPage.php
parentbb5e75ae05238fbe1b06d7e2164de215e2bf4b23 (diff)
Implement TestPage and upgrade the test suite
Diffstat (limited to 'test/TestPage.php')
-rw-r--r--test/TestPage.php61
1 files changed, 61 insertions, 0 deletions
diff --git a/test/TestPage.php b/test/TestPage.php
new file mode 100644
index 0000000..7859481
--- /dev/null
+++ b/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;
+ }
+}