本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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());
}