summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2019-06-17 23:20:43 +0100
committerAndres Rey <[email protected]>2019-06-17 23:20:43 +0100
commitf0b1288ca6d40c461df6b30296d77b9ac5425371 (patch)
tree349d08578de0a27a10969947137d1f8741d791c7 /test
parent45a5ab6f11ce59a2ab9b18eb8c734ad18de86605 (diff)
Style CI Changes
Diffstat (limited to 'test')
-rw-r--r--test/ReadabilityTest.php20
-rw-r--r--test/TestPage.php2
2 files changed, 11 insertions, 11 deletions
diff --git a/test/ReadabilityTest.php b/test/ReadabilityTest.php
index df2a272..ca208e8 100644
--- a/test/ReadabilityTest.php
+++ b/test/ReadabilityTest.php
@@ -7,15 +7,15 @@ use andreskrey\Readability\ParseException;
use andreskrey\Readability\Readability;
/**
- * Class ReadabilityTest
- * @package andreskrey\Readability\Test
+ * Class ReadabilityTest.
*/
class ReadabilityTest extends \PHPUnit\Framework\TestCase
{
/**
- * Test that Readability parses the HTML correctly and matches the expected result
+ * Test that Readability parses the HTML correctly and matches the expected result.
*
* @dataProvider getSamplePages
+ *
* @param TestPage $testPage
*
* @throws ParseException
@@ -36,11 +36,11 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
$this->assertSame($testPage->getExpectedHTML(), $readability->getContent(), 'Parsed text does not match the expected one.');
}
-
/**
- * Test that Readability parses the HTML correctly and matches the expected result
+ * Test that Readability parses the HTML correctly and matches the expected result.
*
* @dataProvider getSamplePages
+ *
* @param TestPage $testPage
*
* @throws ParseException
@@ -66,7 +66,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
}
/**
- * Test that Readability returns all the expected images from the test page
+ * Test that Readability returns all the expected images from the test page.
*
* @param TestPage $testPage
* @dataProvider getSamplePages
@@ -89,7 +89,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
}
/**
- * Main data provider
+ * Main data provider.
*
* @return \Generator
*/
@@ -112,7 +112,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
}
/**
- * Test that Readability throws an exception with malformed HTML
+ * Test that Readability throws an exception with malformed HTML.
*
* @throws ParseException
*/
@@ -125,7 +125,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
}
/**
- * Test that Readability throws an exception with incomplete or short HTML
+ * Test that Readability throws an exception with incomplete or short HTML.
*
* @throws ParseException
*/
@@ -138,7 +138,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
}
/**
- * Test that the Readability object has no content as soon as it is instantiated
+ * Test that the Readability object has no content as soon as it is instantiated.
*/
public function testReadabilityCallGetContentWithNoContent()
{
diff --git a/test/TestPage.php b/test/TestPage.php
index 7859481..ed6f92e 100644
--- a/test/TestPage.php
+++ b/test/TestPage.php
@@ -10,7 +10,7 @@ class TestPage
private $expectedImages;
private $expectedMetadata;
- public function __construct( $configuration, $sourceHTML, $expectedHTML, $expectedImages, $expectedMetadata)
+ public function __construct($configuration, $sourceHTML, $expectedHTML, $expectedImages, $expectedMetadata)
{
$this->configuration = $configuration;
$this->sourceHTML = $sourceHTML;