private function runChecks() { $xmlObject =
simplexml_load_file($this->sourceFile
);
if (!\
is_object($xmlObject->requirements
)) { throw new RuntimeException('Requirements XML file is not valid.'
);
} foreach ($xmlObject->requirement
as $requirement) { $name =
(string) $requirement->name;
$value =
$this->
getRuntimeValue($name);
$requirement->result =
$this->
compare( $name,
$value,
(string) $requirement->required
);
$requirement->version =
$value;
} return $xmlObject->requirement;
}