/** * add a new record * * @expectedException SimpleDbException */ function testAddRecordToInvalidDomain() { // sleep for atleast one second between methods, it is only 'eventual consistency' sleep(1); $itemID = $this->test_item_id; $result = SimpleDB::set('domain_doesnt_exist', $itemID); }