summaryrefslogtreecommitdiff
path: root/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedTestType.php
blob: ebc0a68f57680db416a319e41e9528e652b890b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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');
  }
}
?>