示例#1
0
 /**
  * Test get referrer with empty in session.
  */
 public function testGetReferrerEmpty()
 {
     $this->session->expects($this->any())->method('get')->will($this->returnValue(false));
     $this->assertEquals(false, $this->referrerProvider->getReferrer());
 }
示例#2
0
 /**
  * Return the referrer
  *
  * @return string Referrer name
  */
 public function getReferrer()
 {
     return $this->referrerProvider->getReferrer();
 }