/** * @param string $headerAccept * @param string $acceptType * * @dataProvider getAcceptTypeDataProvider */ public function testGetAcceptType($headerAccept, $acceptType) { $this->request->expects($this->once())->method('getHeader')->with('Accept')->will($this->returnValue($headerAccept)); $this->assertEquals($acceptType, $this->context->getAcceptType()); }