Skip to content

Commit 261e5dd

Browse files
committed
Updated dependencies and tests
Updated Supported PHP Versions
1 parent 72f8510 commit 261e5dd

18 files changed

+54
-26
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: php
22

33
php:
4-
- 5.6
5-
- 7.0
6-
~ 7.1
4+
- 7.1
5+
- 7.2
6+
- 7.3
77

88
install:
99
- composer self-update

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
}
1515
],
1616
"require": {
17-
"php": ">=5.6",
17+
"php": ">=7.1",
1818
"ext-mbstring": "*",
19-
"paquettg/string-encode": "~0.1.0"
19+
"paquettg/string-encode": "~1.0.0"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "~5.7.0",
23-
"satooshi/php-coveralls": "~1.0.0",
24-
"mockery/mockery": "~0.9.0"
22+
"phpunit/phpunit": "^7.5.1",
23+
"mockery/mockery": "^1.2",
24+
"php-coveralls/php-coveralls": "^2.1"
2525
},
2626
"autoload": {
2727
"psr-0": {

phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
>
1312
<testsuites>
1413
<testsuite name="Repository Test Suite">

tests/CollectionTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<?php
2+
declare(strict_types=1);
23

4+
use PHPUnit\Framework\TestCase;
35
use PHPHtmlParser\Selector;
46
use PHPHtmlParser\Dom\HtmlNode;
57
use PHPHtmlParser\Dom\Tag;
68
use PHPHtmlParser\Dom\Collection;
79

8-
class CollectionTest extends PHPUnit_Framework_TestCase {
10+
class CollectionTest extends TestCase {
911

1012
public function testEach()
1113
{

tests/ContentTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2+
declare(strict_types=1);
23

4+
use PHPUnit\Framework\TestCase;
35
use PHPHtmlParser\Content;
46

5-
class ContentTest extends PHPUnit_Framework_TestCase {
7+
class ContentTest extends TestCase {
68

79
public function testChar()
810
{

tests/DomTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2+
declare(strict_types=1);
23

4+
use PHPUnit\Framework\TestCase;
35
use PHPHtmlParser\Dom;
46

5-
class DomTest extends PHPUnit_Framework_TestCase {
7+
class DomTest extends TestCase {
68

79
public function tearDown()
810
{

tests/Node/ChildrenTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2+
declare(strict_types=1);
23

4+
use PHPUnit\Framework\TestCase;
35
use PHPHtmlParser\Dom\MockNode as Node;
46

5-
class NodeChildTest extends PHPUnit_Framework_TestCase {
7+
class NodeChildTest extends TestCase {
68

79
public function testGetParent()
810
{

tests/Node/HtmlTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<?php
2+
declare(strict_types=1);
23

3-
4+
use PHPUnit\Framework\TestCase;
45
use PHPHtmlParser\Dom;
56
use PHPHtmlParser\Dom\HtmlNode;
67
use PHPHtmlParser\Dom\TextNode;
78
use PHPHtmlParser\Dom\MockNode;
89
use PHPHtmlParser\Dom\Tag;
910

10-
class NodeHtmlTest extends PHPUnit_Framework_TestCase {
11+
class NodeHtmlTest extends TestCase {
1112

1213
public function testInnerHtml()
1314
{

tests/Node/ParentTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2+
declare(strict_types=1);
23

4+
use PHPUnit\Framework\TestCase;
35
use PHPHtmlParser\Dom\MockNode as Node;
46

5-
class NodeParentTest extends PHPUnit_Framework_TestCase {
7+
class NodeParentTest extends TestCase {
68

79
public function testHasChild()
810
{

tests/Node/TagTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2+
declare(strict_types=1);
23

4+
use PHPUnit\Framework\TestCase;
35
use PHPHtmlParser\Dom\Tag;
46

5-
class NodeTagTest extends PHPUnit_Framework_TestCase {
7+
class NodeTagTest extends TestCase {
68

79
public function testSelfClosing()
810
{

0 commit comments

Comments
 (0)