Exemplo n.º 1
0
 function __construct($plugin_name, $other_commands = "")
 {
     $this->other_commands = $other_commands;
     $this->commands_as_string = preg_replace("/\\s/", " ", $other_commands);
     $this->plugin_name = $plugin_name;
     parent::__construct();
 }
Exemplo n.º 2
0
 function __construct($name, $flags, $dependency)
 {
     $this->name = $name;
     $this->flags = $flags;
     $this->dependencies = array($dependency);
     parent::__construct();
 }
Exemplo n.º 3
0
 function __construct($pass, $dump = "dump", $dependency = "BasicParseTest")
 {
     $this->pass = $pass;
     // this might be dump-uppered
     $this->dump = $dump;
     $this->dependencies = array($dependency);
     parent::__construct();
 }
Exemplo n.º 4
0
 function __construct($last_pass, $dump = "dump", $dependency = "BasicParseTest")
 {
     $this->last_pass = $last_pass;
     $this->name = "cb_{$last_pass}";
     // this might be dump-uppered
     $this->dump = $dump;
     $this->dependencies = array($dependency);
     parent::__construct();
 }
Exemplo n.º 5
0
 function run_command($command, $subject)
 {
     if ($command == $this->get_command_line1($subject)) {
         if (isset(CompareWithPHP::$cache[$subject])) {
             #				print "fetching cached results\n";
             return CompareWithPHP::$cache[$subject];
         } else {
             #				print "running and caching\n";
             $results = parent::run_command($command, $subject);
             CompareWithPHP::$cache[$subject] = $results;
             #				var_dump (CompareWithPHP::$cache);
             return $results;
         }
     } else {
         #			print "not command 1\n";
         return parent::run_command($command, $subject);
     }
 }
Exemplo n.º 6
0
 function run()
 {
     $this->copy_headers();
     parent::run();
 }
Exemplo n.º 7
0
 function check_prerequisites()
 {
     global $xerces_compiled_in;
     return parent::check_prerequisites() and $xerces_compiled_in != 'no';
 }
Exemplo n.º 8
0
 function run()
 {
     parent::run();
     $num_skipped = $this->solo_tests;
     echo "({$num_skipped} solo tests)\n";
 }