Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /**
  * Check the mutation actually mutates
  *
  * @return bool
  */
 public function checkDiff()
 {
     return $this->mutation->checkDiff();
 }