Skip to content

Instantly share code, notes, and snippets.

@sbisbee
Created August 11, 2011 17:45
Show Gist options
  • Save sbisbee/1140269 to your computer and use it in GitHub Desktop.
Save sbisbee/1140269 to your computer and use it in GitHub Desktop.
For Sag debugging purposes.
#!/usr/bin/php
<?php
require('Sag.php');
$sag = new Sag();
$sag->setDatabase('bwah');
for($i = 0; $i < 1000; $i++) {
echo "$i\n";
if(!$sag->post(array('hi' => 'there'))->body->ok) {
echo "\t!!!!!!FAIL!!!!!!\n";
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment