tests/Supports/CrawlerUrlTest.php
File CrawlerUrlTest.php
has 326 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace SuitTests\Supports;
use GuzzleHttp\Client;
CrawlerUrlTest
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class CrawlerUrlTest extends TestCase
{
/**
* Setup the test environment.
*
Method testEncodingUrl
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testEncodingUrl()
{
$client = $this->getMockClient()->makePartial();
$domCrawler = $this->getMockDomCrawler()->makePartial();
Method testDoRequestHtmlWithTag
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testDoRequestHtmlWithTag()
{
$html = '<!DOCTYPE html>
<html>
<head>
Method testDoRequestHtmlWithoutTag
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testDoRequestHtmlWithoutTag()
{
$html = '<!DOCTYPE html>
<html>
<body>