/** * @dataProvider dataValue * @covers ::value */ public function testValue($value, $expected) { $id = '10'; $this->crawler->expects($this->once())->method('getValue')->with($id)->willReturn('test'); $filters = new Filters(); $this->assertSame($expected, $filters->value($this->crawler, $id, $value)); }