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


PHP Student::getEnrollmentDate方法代碼示例

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


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

示例1: testGetEnrollmentDate

 function testGetEnrollmentDate()
 {
     $name = "Bob";
     $enrollment_date = "2015-01-01";
     $test_student = new Student($name, $enrollment_date);
     $result = $test_student->getEnrollmentDate();
     $this->assertEquals($enrollment_date, $result);
 }
開發者ID:julianstewart,項目名稱:university_registrar2,代碼行數:8,代碼來源:StudentTest.php

示例2: testGetEnrollmentDate

 function testGetEnrollmentDate()
 {
     $student_name = "John Doe";
     $enrollment_date = "2015-09-01";
     $id = 1;
     $test_student = new Student($student_name, $enrollment_date, $id);
     $result = $test_student->getEnrollmentDate();
     $this->assertEquals($enrollment_date, $result);
 }
開發者ID:julianstewart,項目名稱:university_registrar,代碼行數:9,代碼來源:StudentTest.php

示例3: Student

 function test_getEnrollmentDate()
 {
     //Arrange
     $name = "Sandra Maley";
     $enrollment_date = "2015-06-21";
     $test_student = new Student($name, $enrollment_date);
     //Act
     $result = $test_student->getEnrollmentDate();
     //Assert
     $this->assertEquals($enrollment_date, $result);
 }
開發者ID:kevintokheim,項目名稱:University_Registrar2,代碼行數:11,代碼來源:StudentTest.php

示例4: Student

 function test_getEnrollment_date()
 {
     //Arrange
     $name = "John";
     $enrollment_date = "05-05-05";
     $id = 56;
     $test_enrollment_date = new Student($name, $enrollment_date, $id);
     //Act
     $result = $test_enrollment_date->getEnrollmentDate();
     //Assert
     $this->assertEquals($enrollment_date, $result);
 }
開發者ID:Camolot,項目名稱:another-student,代碼行數:12,代碼來源:StudentTest.php

示例5: testSetEnrollmentDate

 function testSetEnrollmentDate()
 {
     //Arrange
     $id = null;
     $name = "Micah";
     $enrollment_date = "2015-08-28";
     $test_student = new Student($id, $name, $enrollment_date);
     //Act
     $test_student->setEnrollmentDate("2014-08-10");
     $result = $test_student->getEnrollmentDate();
     //Assert
     $this->assertEquals("2014-08-10", $result);
 }
開發者ID:kellimargaret,項目名稱:University_Registrar_Part2,代碼行數:13,代碼來源:StudentTest.php

示例6: testUpdateEnrollmentDate

 function testUpdateEnrollmentDate()
 {
     //Arrange
     $name = "bob";
     $enrollment_date = "2015-09-16";
     $test_student = new Student($name, $enrollment_date);
     $test_student->save();
     $new_date = "2015-02-12";
     //Act
     $test_student->updateEnrollmentDate($new_date);
     //Assert
     $this->assertEquals("2015-02-12", $test_student->getEnrollmentDate());
 }
開發者ID:jeffaustin81,項目名稱:University_Registrar,代碼行數:13,代碼來源:StudentTest.php


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