/** * @dataProvider getDiffTestProvider */ public function testGetDiff($tokensOriginal, $tokensMutated, $expected) { $this->mutation->shouldReceive('getMutation')->andReturn($tokensMutated); $this->mutation->mutate($tokensOriginal); $actual = $this->mutation->getDiff(); $this->assertEquals($expected, $actual); }
/** * Check the mutation actually mutates * * @return bool */ public function checkDiff() { return $this->mutation->checkDiff(); }