diff --git a/composer.json b/composer.json index 5549a5e..f8ca845 100755 --- a/composer.json +++ b/composer.json @@ -19,14 +19,13 @@ "ext-curl": "*", "paquettg/string-encode": "~1.0.0", "php-http/httplug": "^2.1", - "php-http/guzzle6-adapter": "^2.0", + "guzzlehttp/guzzle": "^7.0", "guzzlehttp/psr7": "^1.6", "myclabs/php-enum": "^1.7" }, "require-dev": { "phpunit/phpunit": "^7.5.1", "mockery/mockery": "^1.2", - "php-coveralls/php-coveralls": "^2.1", "infection/infection": "^0.13.4", "phan/phan": "^2.4", "friendsofphp/php-cs-fixer": "^2.16" diff --git a/src/PHPHtmlParser/Dom.php b/src/PHPHtmlParser/Dom.php index 0b3a073..816b1b3 100755 --- a/src/PHPHtmlParser/Dom.php +++ b/src/PHPHtmlParser/Dom.php @@ -5,7 +5,7 @@ namespace PHPHtmlParser; use GuzzleHttp\Psr7\Request; -use Http\Adapter\Guzzle6\Client; +use GuzzleHttp\Client; use PHPHtmlParser\Contracts\Dom\CleanerInterface; use PHPHtmlParser\Contracts\Dom\ParserInterface; use PHPHtmlParser\Contracts\DomInterface; diff --git a/src/PHPHtmlParser/StaticDom.php b/src/PHPHtmlParser/StaticDom.php index 95d0107..7895020 100755 --- a/src/PHPHtmlParser/StaticDom.php +++ b/src/PHPHtmlParser/StaticDom.php @@ -5,7 +5,7 @@ namespace PHPHtmlParser; use GuzzleHttp\Psr7\Request; -use Http\Adapter\Guzzle6\Client; +use GuzzleHttp\Client; use PHPHtmlParser\Exceptions\ChildNotFoundException; use PHPHtmlParser\Exceptions\CircularException; use PHPHtmlParser\Exceptions\NotLoadedException; diff --git a/tests/DomTest.php b/tests/DomTest.php index 9fbb152..519d559 100755 --- a/tests/DomTest.php +++ b/tests/DomTest.php @@ -525,4 +525,11 @@ public function testRandomTagInMiddleOfText() $this->assertEquals('
Hello, this is just a test in which <55 names with some other text> should be interpreted as text55>
', $dom->outerHtml); } + + public function testHttpCall() + { + $dom = new Dom(); + $dom->loadFromUrl('http://google.com'); + $this->assertNotEmpty($dom->outerHtml); + } }