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

Given a source directory (@see \Mutagenesis\Generator::setSourceDirectory) pass each to a \Mutagenesis\Mutable instance which is used to generate mutations and store the instructions for applying and reversing them as a set of mutables (instances of \Mutagenesis\Mutation).
public generate ( $mutableObject = null ) : void
Результат void
Пример #1
0
 public function testShouldGenerateAMutableFileObjectPerDetectedFile()
 {
     $generator = new Generator();
     $generator->setSourceDirectory($this->root);
     $mutable = $this->getMock('\\Mutagenesis\\Mutable', array('generate', 'setFilename'));
     $generator->generate($mutable);
     $this->assertEquals(2, count($generator->getMutables()));
 }