diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 5f9bee1..f19eb14 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -54,7 +54,7 @@ jobs: run: "mkdir -p build/logs" - name: "Run PHPUnit" - run: "php vendor/bin/simple-phpunit -v" + run: "php vendor/bin/simple-phpunit -v --filter=testWithWipedBody" phpunit-coverage: name: "PHPUnit coverage (PHP ${{ matrix.php }})" diff --git a/src/Readability.php b/src/Readability.php index f15da11..35d050c 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -265,7 +265,7 @@ class Readability implements LoggerAwareInterface // without tidy the body can (sometimes) be wiped, so re-create it try { - var_dump($this->body, property_exists($this->body, 'childNodes'), isset($this->body->childNodes)); + var_dump($this->body, property_exists($this->body, 'childNodes'), isset($this->body->childNodes), $this->body->childNodes); if (!(property_exists($this->body, 'childNodes') && null !== $this->body->childNodes)) { $this->body = $this->dom->createElement('body'); }