public function testAnother() { $student = new Pupil(); $student->name = "michael_pupil"; $student->save(); $this->assertEquals("A", $student->class); }
public function testPresave() { $user = new Pupil(); $user->name = "michael"; $user->save(); $this->assertEquals("ohohoh", $user->pre_save_data); }