當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Course::setCourseName方法代碼示例

本文整理匯總了PHP中Course::setCourseName方法的典型用法代碼示例。如果您正苦於以下問題:PHP Course::setCourseName方法的具體用法?PHP Course::setCourseName怎麽用?PHP Course::setCourseName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Course的用法示例。


在下文中一共展示了Course::setCourseName方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Course

 function test_setCourseName()
 {
     //Arrange
     $course_name = "History";
     $id = null;
     $course_number = "HIST:101";
     $test_course = new Course($course_name, $course_number, $id);
     //Act
     $test_course->setCourseName("Intro to History");
     $result = $test_course->getCourseName();
     //Assert
     $this->assertEquals("Intro to History", $result);
 }
開發者ID:jeffaustin81,項目名稱:University_Registrar,代碼行數:13,代碼來源:CourseTest.php

示例2: testSetCourseName

 function testSetCourseName()
 {
     //Arrange
     $course_name = "History";
     $crn = "HIST101";
     $id = 1;
     $test_course = new Course($course_name, $crn, $id);
     //Act
     $test_course->setCourseName("Economics");
     $result = $test_course->getCourseName();
     //Assert
     $this->assertEquals("Economics", $result);
 }
開發者ID:kennygrage,項目名稱:epicUniversityFromPartners,代碼行數:13,代碼來源:CourseTest.php

示例3: testSetCourseName

 function testSetCourseName()
 {
     //Arrange
     $course_name = "History";
     $course_number = "101";
     $course_id = 1;
     $test_course = new Course($course_name, $course_number, $course_id);
     //Act
     $test_course->setCourseName($course_name);
     $result = $test_course->getCourseName();
     //Assert
     $this->assertEquals("History", $result);
 }
開發者ID:nathanhwyoung,項目名稱:registrar,代碼行數:13,代碼來源:CourseTest.php

示例4: testSetCourseName

 function testSetCourseName()
 {
     //Arrange
     $course_name = "History 110";
     $id = null;
     $course_number = "HST110";
     $test_course = new Course($course_name, $id, $course_number);
     //Act
     $test_course->setCourseName("Math 101");
     $result = $test_course->getCourseName();
     //Assert
     $this->assertEquals("Math 101", $result);
 }
開發者ID:kylepratuch,項目名稱:registrar2,代碼行數:13,代碼來源:CourseTest.php

示例5: Course

 function test_setCourseName()
 {
     //Arrange
     $course_name = "Monster Literature";
     $course_number = "ENG304";
     $test_course = new Course($course_name, $course_number);
     $new_name = "Erotica Film";
     //Act
     $test_course->setCourseName($new_name);
     $result = $test_course->getCourseName();
     //Assert
     $this->assertEquals($new_name, $result);
 }
開發者ID:kellimargaret,項目名稱:University_Registrar,代碼行數:13,代碼來源:CourseTest.php

示例6: testSetCourseName

 function testSetCourseName()
 {
     //Arrange
     $course_name = "Intro to Art";
     $course_number = "ART101";
     $id = 1;
     $test_course = new Course($course_name, $course_number, $id);
     $test_course->save();
     //Act
     $test_course->setCourseName("Intro to Fine Arts");
     $result = $test_course->getCourseName();
     //Assert
     $this->assertEquals("Intro to Fine Arts", $result);
 }
開發者ID:jtorrespdx,項目名稱:univ,代碼行數:14,代碼來源:CourseTest.php


注:本文中的Course::setCourseName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。