function testSetCourseNumber() { //Arrange $name = "Philosophy 101"; $course_number = "PHIL101"; $test_course = new Course($name, $course_number); //Act $test_course->setCourseNumber('PHIL101'); $result = $test_course->getCourseNumber(); //Assert $this->assertEquals('PHIL101', $result); }
function test_setCourseNumber() { //Arrange $name = "History"; $course_number = "HIST101"; $test_course = new Course($name, $course_number); //Act $test_course->setCourseNumber("ENG500"); $result = $test_course->getCourseNumber(); //Assert $this->assertEquals("ENG500", $result); }
function test_setCourseNumber() { //Arrange $course_name = "History"; $id = null; $course_number = "HIST:101"; $test_course = new Course($course_name, $course_number, $id); //Act $test_course->setCourseNumber("BIO:111"); $result = $test_course->getCourseNumber(); //Assert $this->assertEquals("BIO:111", $result); }
function test_setCourseNumber() { //Arrange $course_name = "Monster Literature"; $course_number = "ENG304"; $test_course = new Course($course_name, $course_number); $new_number = "ENG204"; //Act $test_course->setCourseNumber($new_number); $result = $test_course->getCourseNumber(); //Assert $this->assertEquals($new_number, $result); }