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

Check whether the current file will contain a mutation of the given type
public hasMutation ( string $type ) : boolean
$type string The mutation type as documented
Результат boolean
Пример #1
0
 /**
  * @test
  */
 public function shouldGenerateBooleanFalseMutationWhenBoolFalseDetected()
 {
     $file = new Mutable($this->root . '/bool2.php');
     $file->generate();
     $mutants = $file->getMutants()->all();
     $mutants->rewind();
     $mutant = $mutants->current();
     $this->assertEquals(1, count($mutants));
     $this->assertInstanceOf('\\Mutagenesis\\Mutation\\BooleanFalse', $mutant->getMutation());
     $this->assertTrue($file->hasMutation('BooleanFalse'));
     $this->assertFalse($file->hasMutation('OperatorAddition'));
 }