unset($i1); try { $i1 = new rtShopVoucher(); $i1->save(); $t->fail('->save() rtShopVoucher allows empty saves'); $i1->delete(); } catch (Exception $e) { $t->pass('->save() rtShopVoucher throws an Exception!'); } // Clean up unset($i1); try { $i1 = new rtShopStock(); $i1->save(); $t->pass('->save() rtShopStock allows empty saves'); $i1->delete(); } catch (Exception $e) { $t->fail('->save() rtShopStock throws an Exception!'); } // Clean up unset($i1); try { $i1 = new rtShopAttribute(); $i1->save(); $t->pass('->save() rtShopAttribute allows empty saves'); $i1->delete(); } catch (Exception $e) { $t->fail('->save() rtShopAttribute throws an Exception!'); } // Clean up unset($i1);