Example #1
0
 /**
  * Executes the current command.
  *
  * @param InputInterface  $input  An InputInterface instance
  * @param OutputInterface $output An OutputInterface instance
  *
  * @return null|int null or 0 if everything went fine, or an error code
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $driver = XdebugSQLite3::getInstance();
     $coverage = new \PHP_CodeCoverage($driver);
     $this->handleConfiguration($coverage, $input);
     $this->handleFilter($coverage, $input);
     $coverage->start('phpcov');
     $coverage->stop();
     $this->handleReports($coverage, $input, $output);
 }
Example #2
0
/**
 * Stops the current coverage analysis.
 */
function stop_coverage()
{
    // hack until i can think of a way to run tests first and w/o exiting.
    $autorun = function_exists('run_local_tests');
    if ($autorun) {
        $result = run_local_tests();
    }
    Driver::getInstance()->stop();
    if ($autorun) {
        exit($result ? 0 : 1);
    }
}
Example #3
0
 /**
  * Executes the current command.
  **/
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $driver = new XdebugSQLite3();
     $driver->resetLog();
 }