school = new School() ; } public function testNoStudent() { $this->assertEquals(0, $this->school->numberOfStudents()); } public function testAddStudent() { $this->markTestSkipped(); $this->school->add("Claire", 2); $this->assertContains('Claire', $this->school->grade(2)); } public function testAddStudentsinSameGrade() { $this->markTestSkipped(); $this->school->add("Marc", 2); $this->school->add("Virginie", 2); $this->school->add("Claire", 2); $students = $this->school->grade(2) ; $this->assertCount(3, $students); $this->assertEquals( ['Claire', 'Marc', 'Virginie'], $students, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = true ); } public function testAddStudentInDifferentGrades() { $this->markTestSkipped(); $this->school->add("Marc", 3); $this->school->add("Claire", 6); $this->assertContains('Marc', $this->school->grade(3)); $this->assertContains('Claire', $this->school->grade(6)); $this->assertNotContains('Marc', $this->school->grade(6)); $this->assertNotContains('Claire', $this->school->grade(3)); } public function testEmptyGrade() { $this->markTestSkipped(); $this->assertEmpty($this->school->grade(1)); } public function testSortSchool() { $this->markTestSkipped(); $this->school->add("Marc", 5); $this->school->add("Virginie", 5); $this->school->add("Claire", 5); $this->school->add("Mehdi", 4); $sortedStudents = [ 4 => ['Mehdi'], 5 => ['Claire', 'Marc', 'Virginie'] ]; $schoolStudents = $this->school->studentsByGradeAlphabetical() ; $this->assertEquals($sortedStudents, $schoolStudents) ; } }