| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | final class SearchTest extends TestCase |
||
| 9 | { |
||
| 10 | public function testResultViaCurl(): void |
||
| 11 | { |
||
| 12 | $Google = new SearchViaCurl('piedweb.com'); |
||
| 13 | |||
| 14 | ->setNbrPage(1) // Get Only first Page |
||
| 15 | ->setTld('fr') |
||
| 16 | ->setLanguage('fr') |
||
| 17 | ->setSleep(1) |
||
| 18 | ->setCacheFolder(null) |
||
| 19 | ; |
||
| 20 | $results = $Google->extractResults(); |
||
| 21 | |||
| 22 | $this->assertEquals('https://piedweb.com/', $results[0]['link']); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function testResultViaCurlForMobile(): void |
||
| 39 | } |
||
| 40 | } |
||
| 41 |