We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 955808d commit b8de9bcCopy full SHA for b8de9bc
tests/BingTest.php
@@ -0,0 +1,18 @@
1
+<?php
2
+
3
+use PHPUnit\Framework\TestCase;
4
+use SerpScraper\Engine\BingSearch;
5
6
+final class BingTest extends TestCase
7
+{
8
+ public function testSearch()
9
+ {
10
+ $bing = new BingSearch();
11
+ $bing->setPreference('results_per_page', 50);
12
13
+ $res = $bing->search('bing');
14
15
+ $this->assertEquals(10, count($res->results));
16
+ }
17
+}
18
tests/GoogleTest.php
@@ -5,7 +5,7 @@
final class GoogleTest extends TestCase
{
- public function testGoogleSearch()
$google = new GoogleSearch();
$res = $google->search('google');
0 commit comments