public static function setupBeforeClass() { static::$pathToCustomersJsonFile = tempnam(sys_get_temp_dir(), 'customers.json.'); if (!copy(__DIR__ . '/../data/customers.json', static::$pathToCustomersJsonFile)) { throw new \RuntimeException("Unable to copy data/customers.json to " . static::$pathToCustomersJsonFile); } parent::setupBeforeclass(); }