mutate() public méthode

Perform a mutation against the given original source code tokens for a mutable element
public mutate ( array $tokens, integer $index )
$tokens array
$index integer
 /**
  * @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);
 }