api de gestion de ticket, basé sur php-crud-api. Le but est de décorrélé les outils de gestion des données, afin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Config.php.dist 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace Mevdschee\PhpCrudApi\Tests;
  3. class Config
  4. {
  5. /**
  6. * Configure one or more database connections as associative arrays.
  7. * Tests will be run against any database connection specified here.
  8. *
  9. * @var array
  10. */
  11. public static $config = array(
  12. 'MySQL' => array(
  13. 'hostname' => '{{mysql_hostname}}', // 'localhost' for MySQL, '(Local)' for SQLServer, empty for SQLite
  14. 'username' => '{{mysql_username}}', // May be empty on SQLServer or SQLite
  15. 'password' => '{{mysql_password}}', // May be empty on SQLServer or SQLite
  16. 'database' => '{{mysql_database}}', // NB: Use an empty database, data will be LOST!
  17. ),
  18. /* Uncomment and update for any databases you want to use.
  19. 'PostgreSQL' => array(
  20. 'hostname' => '{{pgsql_hostname}}',
  21. 'username' => '{{pgsql_username}}',
  22. 'password' => '{{pgsql_password}}',
  23. 'database' => '{{pgsql_database}}',
  24. ),
  25. 'SQLite' => array(
  26. 'hostname' => '{{sqlite_hostname}}',
  27. 'username' => '{{sqlite_username}}',
  28. 'password' => '{{sqlite_password}}',
  29. 'database' => '{{sqlite_database}}',
  30. ),
  31. 'SQLServer' => array(
  32. 'hostname' => '{{sqlsrv_hostname}}',
  33. 'username' => '{{sqlsrv_username}}',
  34. 'password' => '{{sqlsrv_password}}',
  35. 'database' => '{{sqlsrv_database}}',
  36. ),
  37. */
  38. );
  39. }