/** * @test * @return null */ public function shouldPassTotalIndexCount() { // given $domain = 'some-unpopular-domain.com'; $link01 = new Link('http://some-other-page.com', 'title01'); $links = array($link01); $total = 250; $result = new Result($links, $total); // when $filteredResult = $this->domainFilter->filter($result, $domain); // then $this->assertSame($total, $filteredResult->getTotal()); }
/** * @param string $keywors * @param string $domain * * @return Result */ public function getHits($keywors, $domain) { return $this->domainFilter->filter($this->search($keywors), $domain); }