root/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedTestType.php

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. check
  2. getMessage

<?php

/**
 * Check that b|c|v is specified
 *
 */
class gtIsSpecifiedTestType extends gtPreCondition {
  
  public function check( $clo) {
    if($clo->hasOption('b') || $clo->hasOption('e') || $clo->hasOption('v') ) {
    
        return true;
      }
    return false;
  }
  
  public function getMessage() {
    return gtText::get('testTypeNotSpecified');
  }
}

/* [<][>][^][v][top][bottom][index][help] */