From cefe72f0d75d569e2443788ff64d16e1ee8fc644 Mon Sep 17 00:00:00 2001 From: Perry Rylance Date: Mon, 30 May 2022 11:45:45 +0100 Subject: [PATCH] 2.1.2 - Fix countable warning - Added test output not empty --- composer.json | 2 +- tests/DOMDocumentTest.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2ab65728..9d8d397c 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "perry-rylance/dom-document", - "version": "2.1.1", + "version": "2.1.2", "minimum-stability": "stable", "description": "An extension of PHP's DOMDocument library. This library implements many common jQuery functions, adds support for HTML5, CSS selectors, method chaining and performing operations on sets of matched results.", diff --git a/tests/DOMDocumentTest.php b/tests/DOMDocumentTest.php index 75dc92ef..5477b180 100644 --- a/tests/DOMDocumentTest.php +++ b/tests/DOMDocumentTest.php @@ -441,4 +441,11 @@ public function testImport() $this->assertEquals( $text, $document->find("#import-test")->text() ); } + + public function testOutputNotEmpty() + { + $document = $this->getDocument(); + + $this->assertNotEmpty($document->html); + } }