/** * This will throw FATAL error on php7 */ public function testafterImportSave() { require_once 'data/Link.php'; //execute the method and test if it works and does not throws an exception. try { $meeting = new Meeting(); //test without parent_type $meeting->afterImportSave(); //test with parent_type Contacts $meeting->parent_type = 'Contacts'; $meeting->afterImportSave(); //test with parent_type Leads $meeting->parent_type = 'Leads'; $meeting->afterImportSave(); $this->assertTrue(true); } catch (Exception $e) { $this->fail(); } }