public function testGetDatabaseThreadStackValue()
 {
     $threadStackValue = DatabaseCompatibilityUtil::getDatabaseThreadStackValue('mysql', $this->hostname, $this->rootUsername, $this->rootPassword, $this->databasePort);
     $this->assertGreaterThan(0, $threadStackValue);
 }
예제 #2
0
 /**
  * Check database thread_stack value.
  */
 public static function checkDatabaseThreadStackValue($databaseType, $databaseHostname, $databaseUsername, $databasePassword, $databasePort, $minimumRequiredThreadStackValue, &$threadStackValue)
 {
     assert('in_array($databaseType, static::getSupportedDatabaseTypes())');
     $threadStackValue = DatabaseCompatibilityUtil::getDatabaseThreadStackValue($databaseType, $databaseHostname, $databaseUsername, $databasePassword, $databasePort);
     return $minimumRequiredThreadStackValue <= $threadStackValue;
 }