public function testPutURL() { $this->sessionStorage->expects($this->exactly(2))->method('put'); $this->urlGenerator->expects($this->once())->method('current')->will($this->returnValue('http://' . uniqid() . '.com')); $this->testInstance->putURL(uniqid()); $this->testInstance->putURL(uniqid(), 'http://link.com'); }