From f0b1288ca6d40c461df6b30296d77b9ac5425371 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Mon, 17 Jun 2019 23:20:43 +0100 Subject: Style CI Changes --- test/ReadabilityTest.php | 20 ++++++++++---------- test/TestPage.php | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'test') 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; -- cgit v1.2.3