Sandbox vs Mocking
Use sandbox for integration tests that need realistic responses. Use mocks for unit tests that need to be fast and deterministic.
PHPUnit Example
public function test_sends_sms_successfully()\n{\n $response = Africoders::sms()->send([\n 'recipient' => '+2348012345678',\n 'message' => 'Test',\n ]);\n \n $this->assertEquals('sent', $response['status']);\n}