当前位置: 首页>>代码示例>>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;未经允许,请勿转载。