/**
  * Before class method: set minimun server severity;
  * otherwise server messages end up on the error stack
  * and will let the test fail (no error policy).
  *
  */
 public function setUp()
 {
     parent::setUp();
     if (function_exists('mssql_min_message_severity')) {
         mssql_min_message_severity(12);
     }
 }
 /**
  * Skip tests which require a specific minimum server version
  *
  */
 public function setUp()
 {
     parent::setUp();
     $m = $this->getClass()->getMethod($this->name);
     if ($m->hasAnnotation('version')) {
         $server = $this->db()->query('select @@version_number as v')->next('v');
         if ($server < ($required = $m->getAnnotation('version'))) {
             throw new PrerequisitesNotMetError('Server version not sufficient: ' . $server, NULL, array($required));
         }
     }
 }