/** * Skip the test if 'gzip' is not in $PATH. * * @return bool */ protected function checkHasGzip() { if (self::$hasGzip === null) { self::$hasGzip = Installer::locateExecutableInDefaultPaths('gzip') !== false; } if (!self::$hasGzip) { $this->markTestSkipped("Skip test, requires the gzip utility in PATH"); } return self::$hasGzip; }