/** * @dataProvider dataProviderForInverse */ public function testInverse($p, $ν, $x) { $this->assertEquals($x, StudentT::inverse($p, $ν)); }
public function test_deleteMentorAndStudentNowHasTooFewMentors() { $m = new MentorT("blah"); $m2 = new MentorT("blah2"); $s = new StudentT(99); $s2 = new StudentT(98); $s3 = new StudentT(97); $m->setStudents(array($s, $s2, $s3)); $m2->setStudents(array($s, $s2, $s3)); $p = new ProgramT(); $s->setProgram($p); $m->delete(); $this->assertEqual(0, $m->numberOfStudents()); $this->assertEqual(0, $m2->numberOfStudents()); $this->assertEqual(0, $s->numberOfMentors()); }