reverseMutation() публичный Метод

Reverse a previously applied mutation to the given file
public reverseMutation ( array $mutation )
$mutation array
Пример #1
0
 public function testShouldRevertToOriginalStaticMethodBodyWhenRequested()
 {
     $mutationInstance = new OperatorAddition(2);
     $testeeInstance = new Testee();
     $testeeInstance->setFileName($this->root . '/runkit/Math2.php')->setClassName('RunkitTest_Math2')->setMethodName('add')->setArguments('$op1,$op2')->setTokens(array(array(335, 'return', 7), array(309, '$op1', 7), '+', array(309, '$op2', 7), ';'));
     $mutant = new Mutant($testeeInstance, $mutationInstance);
     $runkit = new Runkit();
     $runkit->applyMutation($mutant);
     $runkit->reverseMutation($mutant);
     $this->assertEquals(2, \RunkitTest_Math2::add(1, 1));
 }