1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Wed, 21 Aug 2019 11:30:10 -1000
Subject: Adapt to recent version of PHPUnit (8)
Forwarded: https://github.com/theseer/fDOMDocument/pull/39
---
tests/XPathQuery.test.php | 2 +-
tests/fDOMDocument.test.php | 2 +-
tests/fDOMDocumentFragment.test.php | 2 +-
tests/fDOMElement.test.php | 2 +-
tests/fDOMXPath.test.php | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/XPathQuery.test.php b/tests/XPathQuery.test.php
index 3bed435..da8e7ed 100644
--- a/tests/XPathQuery.test.php
+++ b/tests/XPathQuery.test.php
@@ -48,7 +48,7 @@ namespace TheSeer\fDOM\Tests {
private $dom;
- protected function setUp() {
+ protected function setUp(): void {
$this->dom = new fDOMDocument();
$this->dom->loadXML('<?xml version="1.0" ?><root attr="value" />');
}
diff --git a/tests/fDOMDocument.test.php b/tests/fDOMDocument.test.php
index fd5c08f..28798cd 100644
--- a/tests/fDOMDocument.test.php
+++ b/tests/fDOMDocument.test.php
@@ -55,7 +55,7 @@ namespace TheSeer\fDOM\Tests {
*/
private $dom;
- public function setUp() {
+ public function setUp(): void {
$this->dom = new fDOMDocument();
}
diff --git a/tests/fDOMDocumentFragment.test.php b/tests/fDOMDocumentFragment.test.php
index d7fd021..98a5be4 100644
--- a/tests/fDOMDocumentFragment.test.php
+++ b/tests/fDOMDocumentFragment.test.php
@@ -61,7 +61,7 @@ namespace TheSeer\fDOM\Tests {
*/
private $frag;
- public function setUp() {
+ public function setUp(): void {
$this->dom = new fDOMDocument();
$this->frag = $this->dom->createDocumentFragment();
}
diff --git a/tests/fDOMElement.test.php b/tests/fDOMElement.test.php
index 3dba211..5b015cf 100644
--- a/tests/fDOMElement.test.php
+++ b/tests/fDOMElement.test.php
@@ -61,7 +61,7 @@ namespace TheSeer\fDOM\Tests {
*/
private $node;
- public function setUp() {
+ public function setUp(): void {
$this->dom = new fDOMDocument();
$this->dom->loadXML('<?xml version="1.0" ?><root><node><child/></node><node /></root>');
$this->node = $this->dom->documentElement;
diff --git a/tests/fDOMXPath.test.php b/tests/fDOMXPath.test.php
index 2504a75..76cdbd1 100644
--- a/tests/fDOMXPath.test.php
+++ b/tests/fDOMXPath.test.php
@@ -61,7 +61,7 @@ namespace TheSeer\fDOM\Tests {
*/
private $xp;
- public function setUp() {
+ public function setUp(): void {
$this->dom = new fDOMDocument();
$this->dom->loadXML('<?xml version="1.0" ?><root><node attr="foo" /></root>');
$this->xp = $this->dom->getDOMXPath();
|