standardize EOLs to output diffs properly on Windows
[phpt.git] / src / PHPT / Case / Validator / CgiRequired.php
blobd8768138ed857d8019ebf57cef8ef6a6d6594c88
1 <?php
3 class PHPT_Case_Validator_CgiRequired implements PHPT_Case_Validator
5 public function __construct()
10 public function validate(PHPT_Case $case)
12 if ($this->is($case) == false) {
13 throw new PHPT_Case_InvalidCaseException();
17 public function is(PHPT_Case $case)
19 $return = $case->sections->filterByInterface('CgiExecutable')->valid();
20 $case->sections->filterByInterface();
21 return $return;