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