Skip to content

Commit

Permalink
added tests for Bing
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon1600 committed Oct 5, 2019
1 parent 955808d commit b8de9bc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions tests/BingTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

use PHPUnit\Framework\TestCase;
use SerpScraper\Engine\BingSearch;

final class BingTest extends TestCase
{
public function testSearch()
{
$bing = new BingSearch();
$bing->setPreference('results_per_page', 50);

$res = $bing->search('bing');

$this->assertEquals(10, count($res->results));
}
}

2 changes: 1 addition & 1 deletion tests/GoogleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

final class GoogleTest extends TestCase
{
public function testGoogleSearch()
public function testSearch()
{
$google = new GoogleSearch();
$res = $google->search('google');
Expand Down

0 comments on commit b8de9bc

Please sign in to comment.