Exemplo n.º 1
0
 /**
  * @test
  */
 function execute_php_dryrun()
 {
     $this->config->dryRun = true;
     $this->executor = new Executor($this->config, $this->env->logger());
     $fn = $this->env->files('/ok/3000.php');
     $this->executor->execute($fn);
     assertEmpty($this->fetch_list());
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 function migrate_dryRun()
 {
     $this->config->dryRun = true;
     $this->manager = new Manager($this->config, $this->env->logger());
     $this->manager->migrate();
     $rows = $this->pdo->query("show tables like 'tt'")->fetchAll();
     assertEmpty($rows);
     $rows = $this->pdo->query("show tables like 'migrate'")->fetchAll();
     assertEmpty($rows);
 }