test_config.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * Test configuration file
  5. * This file contains MOCK values for testing - never real credentials
  6. * For real credentials, use .env.testing file
  7. */
  8. return [
  9. // Mock API credentials - these are fake values for unit testing
  10. 'test_credentials' => [
  11. 'sid' => 'mock_sid_12345',
  12. 'app_key' => 'mock_app_key_67890',
  13. 'app_secret' => 'mock_app_secret_abcdef',
  14. ],
  15. // Mock API endpoints for testing
  16. 'test_endpoints' => [
  17. 'sandbox_base_url' => 'https://mock-api.example.com/openapi2',
  18. 'production_base_url' => 'https://mock-prod-api.example.com/openapi2',
  19. ],
  20. // Test timeouts and settings
  21. 'test_settings' => [
  22. 'timeout' => 5, // Shorter timeout for tests
  23. 'debug' => true,
  24. 'log_file' => null, // No logging during tests
  25. ],
  26. // Mock response data for testing
  27. 'mock_responses' => [
  28. 'success' => [
  29. 'code' => 0,
  30. 'message' => 'Success',
  31. 'data' => ['test' => 'result']
  32. ],
  33. 'error' => [
  34. 'code' => 1001,
  35. 'message' => 'Test error',
  36. 'data' => null
  37. ],
  38. ],
  39. ];