1<?php 2error_reporting(-1); 3ini_set('display_errors', 1); 4 5require_once __DIR__ . '/vendor/autoload.php'; 6 7date_default_timezone_set('UTC'); 8 9set_error_handler('error_handler', E_ALL); 10 11// Don't print errors for methods deprecated in the library 12function error_handler($errno) { 13 return $errno === E_USER_DEPRECATED; 14} 15 16// Test helper functions 17function get_fixture($fixture) 18{ 19 $fixture = __DIR__ . '/tests/fixtures/' . $fixture . '.json'; 20 $fixture = file_get_contents($fixture); 21 22 return json_decode($fixture); 23} 24