mirror of
https://github.com/j0k3r/php-readability.git
synced 2026-09-27 14:36:23 +00:00
Compare commits
3
Commits
774363e18d
..
1.3.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ed91105ea | ||
|
|
952588ee1f | ||
|
|
e4e975db96 |
@@ -3,11 +3,9 @@ name: "CI"
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- "master"
|
||||
- "1.x"
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
- "1.x"
|
||||
|
||||
env:
|
||||
@@ -29,6 +27,7 @@ jobs:
|
||||
- "8.2"
|
||||
- "8.3"
|
||||
- "8.4"
|
||||
- "8.5"
|
||||
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
|
||||
+1
-1
@@ -118,7 +118,7 @@ class Readability implements LoggerAwareInterface
|
||||
'enclose-text' => true,
|
||||
'merge-divs' => true,
|
||||
// 'merge-spans' => true,
|
||||
'input-encoding' => '????',
|
||||
'input-encoding' => 'utf8',
|
||||
'output-encoding' => 'utf8',
|
||||
'hide-comments' => true,
|
||||
];
|
||||
|
||||
@@ -17,6 +17,7 @@ class ReadabilityTest extends \PHPUnit\Framework\TestCase
|
||||
public function testConstructDefault()
|
||||
{
|
||||
$readability = $this->getReadability('');
|
||||
$this->assertSame('utf8', $readability->tidy_config['input-encoding']);
|
||||
|
||||
$this->assertNull($readability->url);
|
||||
$this->assertInstanceOf(\DOMDocument::class, $readability->dom);
|
||||
|
||||
Reference in New Issue
Block a user