Esempio n. 1
0
 public function testPathDifferentiator()
 {
     $this->requestMock->method('isSecure')->willReturn(true);
     $this->requestMock->expects($this->at(1))->method('getUriString')->willReturn('http://example.com/path/');
     $this->requestMock->expects($this->at(4))->method('getUriString')->willReturn('http://example.com/path1/');
     $this->contextMock->method('getVaryString')->willReturn(self::VARY);
     $valuePath1 = $this->model->getValue();
     $valuePath2 = $this->model->getValue();
     $this->assertNotEquals($valuePath1, $valuePath2);
 }