Пример #1
0
 /**
  * Test referrer is search engine.
  *
  * @dataProvider dataReferrerIsSearchEngine
  */
 public function testReferrerIsSearchEngine($referrer, $isSearchEngine)
 {
     $this->session->expects($this->any())->method('get')->will($this->returnValue($referrer));
     $this->assertEquals($isSearchEngine, $this->referrerProvider->referrerIsSearchEngine());
 }
Пример #2
0
 /**
  * Return if the referrer is a search engine
  *
  * @return string Referrer is search engine
  */
 public function referrerIsSearchEngine()
 {
     return (int) $this->referrerProvider->referrerIsSearchEngine();
 }