Skip to content

Instantly share code, notes, and snippets.

View KarthickSelvam's full-sized avatar

Karthick S KarthickSelvam

View GitHub Profile
@orottier
orottier / RetryTest.php
Last active July 21, 2023 10:10
Retry function for PHP with exponential backoff
<?php
class RetryTest extends TestCase
{
public function setUp()
{
parent::setUp();
// abuse superglobal to keep track of state
$_GET['a'] = 0;
}