/** * @param $cookieExists * * @dataProvider trueFalseDataProvider */ public function testVaryStringSource($cookieExists) { $this->requestMock->method('get')->willReturn($cookieExists ? 'vary-string-from-cookie' : null); $this->contextMock->expects($cookieExists ? $this->never() : $this->once())->method('getVaryString'); $this->model->getValue(); }