コード例 #1
0
 /**
  * @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);
 }
コード例 #2
0
ファイル: Mutant.php プロジェクト: judgedim/mutagenesis
 /**
  * Check the mutation actually mutates
  *
  * @return bool
  */
 public function checkDiff()
 {
     return $this->mutation->checkDiff();
 }