예제 #1
0
 /**
  * Check database max_sp_recursion_depth value.
  */
 public static function checkDatabaseMaxSpRecursionDepth($databaseType, $databaseHostname, $databaseUsername, $databasePassword, $databasePort, $minimumRequiredMaxSpRecursionDepth, &$maxSpRecursionDepth)
 {
     assert('in_array($databaseType, static::getSupportedDatabaseTypes())');
     $maxSpRecursionDepth = DatabaseCompatibilityUtil::getDatabaseMaxSpRecursionDepth($databaseType, $databaseHostname, $databaseUsername, $databasePassword, $databasePort);
     return $minimumRequiredMaxSpRecursionDepth <= $maxSpRecursionDepth;
 }
 public function testGetDatabaseMaxSpRecursionDepth()
 {
     $maxSpRecursionDepth = DatabaseCompatibilityUtil::getDatabaseMaxSpRecursionDepth('mysql', $this->hostname, $this->rootUsername, $this->rootPassword, $this->databasePort);
     $this->assertGreaterThan(0, $maxSpRecursionDepth);
 }
 public function testGetDatabaseMaxSpRecursionDepth()
 {
     $maxSpRecursionDepth = DatabaseCompatibilityUtil::getDatabaseMaxSpRecursionDepth('mysql', $this->temporaryDatabaseHostname, $this->temporaryDatabaseUsername, $this->temporaryDatabasePassword, $this->temporaryDatabasePort);
     $this->assertGreaterThanOrEqual(0, $maxSpRecursionDepth);
 }