//#9 $t->is($obj->getAppUid(), '', 'getAppUid() return empty, when the instance doesnt have any row'); //getAppTitle try { $obj = new Application(); $res = $obj->getAppTitle(); } catch (Exception $e) { //#10 $t->isa_ok($e, 'Exception', 'getAppTitle() return error when APP_UID is not defined'); //#11 $t->is($e->getMessage(), "Error in getAppTitle, the APP_UID can't be blank", 'getAppTitle() return Error in getAppTitle, the APP_UID cant be blank'); } //setAppTitle try { $obj = new Application(); $obj->setAppTitle('x'); } catch (Exception $e) { //#12 $t->isa_ok($e, 'Exception', 'setAppTitle() return error when APP_UID is not defined'); //#13 $t->is($e->getMessage(), "Error in setAppTitle, the APP_UID can't be blank", 'setAppTitle() return Error in getAppTitle, the APP_UID cant be blank'); } //create try { $obj = new Application(); $res = $obj->create(); } catch (Exception $e) { //#14 $t->isa_ok($e, 'PropelException', 'create() return error when APP_UID is not defined'); //#15 $t->like($e->getMessage(), "%Unable to execute INSERT statement%", 'getAppTitle() return Error in getAppTitle, the APP_UID cant be blank');