Skip to content

Commit 05ce9f1

Browse files
committed
SDK-752: Prevent log messages surfacing when error_log hasn't been configured
1 parent cc00c04 commit 05ce9f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/bootstrap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
*/
55
require_once __DIR__ . '/../vendor/autoload.php';
66

7+
// Prevent log messages surfacing when error_log hasn't been configured.
8+
if (!ini_get('error_log')) {
9+
ini_set('error_log', '/dev/null');
10+
}
11+
712
define('SDK_ID', '990a3996-5762-4e8a-aa64-cb406fdb0e68');
813
define('RECEIPT_JSON', __DIR__ . '/sample-data/receipt.json');
914
define('INVALID_YOTI_CONNECT_TOKEN', 'sdfsdfsdasdajsopifajsd=');

0 commit comments

Comments
 (0)