Skip to content

Commit 69c30e1

Browse files
committed
Fixed unit tests
1 parent bad5512 commit 69c30e1

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
### Changed
10+
### Added
11+
- Added support for php 7.4.
12+
- Added custom header support for curl request.
13+
- Added gzip detection and decoding.
14+
- Added additional type checking.
1115

16+
### Changed
1217
- Fixed bug with multiple selectors query.
18+
- Updated documentation.
19+
- Fixed issue with Dom object.
1320

14-
## 2.1.0
15-
16-
### Added
17-
- Added support for php 7.4
1821

1922
## 2.1.0
2023

tests/DomTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function testLoadFromUrl()
224224
$curl = Mockery::mock('PHPHtmlParser\CurlInterface');
225225
$curl->shouldReceive('get')
226226
->once()
227-
->with('http://google.com')
227+
->with('http://google.com', [])
228228
->andReturn(file_get_contents('tests/data/files/small.html'));
229229

230230
$dom = new Dom;

tests/StaticDomTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testLoadFromUrl()
6161
$curl = Mockery::mock('PHPHtmlParser\CurlInterface');
6262
$curl->shouldReceive('get')
6363
->once()
64-
->with('http://google.com')
64+
->with('http://google.com', [])
6565
->andReturn(file_get_contents('tests/data/files/small.html'));
6666

6767
Dom::loadFromUrl('http://google.com', [], $curl);

0 commit comments

Comments
 (0)