function check_version() { if (!function_exists('version_compare')) { _fail(PHP_VERSION); return; } if (version_compare(PHP_VERSION, '4.1.0', 'ge')) { _pass(PHP_VERSION); } else { _fail(PHP_VERSION); } }
public function wasGotten() { $b = in_array($name, $this->got_attrs); if ($b) { _pass(); } else { _fail(); } return $this; }