Mutagenesis\Mutable::cleanup PHP Метод

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

Cleanup routines for memory management
public cleanup ( )
    public function cleanup()
    {
        unset($this->_mutations, $this->_mutables);
    }

Usage Example

Пример #1
0
 /**
  * @test
  */
 public function cleanupShouldResetMutationsAndMutables()
 {
     $file = new Mutable($this->root . '/bool2.php');
     $file->generate();
     $mutants = $file->getMutants();
     $mutables = $file->getMutables();
     $this->assertGreaterThan(0, count($mutants));
     $this->assertGreaterThan(0, count($mutables));
     $file->cleanup();
     $this->assertInstanceOf('\\Mutagenesis\\Mutant\\MutantCollectionInterface', $file->getMutants());
     $this->assertEquals(array(), $file->getMutables());
 }