当前位置: 首页>>代码示例>>PHP>>正文


PHP Course::getCourseName方法代码示例

本文整理汇总了PHP中Course::getCourseName方法的典型用法代码示例。如果您正苦于以下问题:PHP Course::getCourseName方法的具体用法?PHP Course::getCourseName怎么用?PHP Course::getCourseName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Course的用法示例。


在下文中一共展示了Course::getCourseName方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testGetCourseName

 function testGetCourseName()
 {
     $course_name = "History";
     $course_code = "HIST100";
     $test_course = new Course($course_name, $course_code);
     $result = $test_course->getCourseName();
     $this->assertEquals($course_name, $result);
 }
开发者ID:julianstewart,项目名称:university_registrar,代码行数:8,代码来源:CourseTest.php

示例2: testGetCourseName

 function testGetCourseName()
 {
     //Arrange
     $course_name = "HISTORY";
     $number = 101;
     $test_course = new Course($course_name, $number);
     //Act
     $result = $test_course->getCourseName();
     //Assert
     $this->assertEquals($course_name, $result);
 }
开发者ID:bencasalino,项目名称:registrar-afternoon,代码行数:11,代码来源:courseTest.php

示例3: Course

 function test_getCourseName()
 {
     //Arrange
     $course_name = "Monster Literature";
     $course_number = "ENG304";
     $test_course = new Course($course_name, $course_number);
     //Act
     $result = $test_course->getCourseName();
     //Assert
     $this->assertEquals($course_name, $result);
 }
开发者ID:kellimargaret,项目名称:University_Registrar,代码行数:11,代码来源:CourseTest.php

示例4: Course

 function test_getCourseName()
 {
     //Arrange
     $course_name = "MTH101";
     $crn = 1234;
     $id = null;
     $test_course = new Course($course_name, $crn, $id);
     $test_course->save();
     //Act
     $result = $test_course->getCourseName();
     //Assert
     $this->assertEquals($result, $course_name);
 }
开发者ID:kylepratuch,项目名称:registrar,代码行数:13,代码来源:CourseTest.php

示例5: testUpdate

 function testUpdate()
 {
     //Arrange
     $course_name = "Intro to Art";
     $course_number = "ART101";
     $id = 1;
     $test_course = new Course($course_name, $course_number, $id);
     $test_course->save();
     //Act
     $new_course_name = "Intro to Fine Arts";
     $test_course->update($new_course_name);
     //Assert
     $this->assertEquals("Intro to Fine Arts", $test_course->getCourseName());
 }
开发者ID:jtorrespdx,项目名称:univ,代码行数:14,代码来源:CourseTest.php

示例6: testUpdate

 function testUpdate()
 {
     $course_name = "Vampires";
     $course_number = 1;
     $id = 1;
     $test_course = new Course($course_name, $course_number, $id);
     $test_course->save();
     $course_name2 = "Discrete Math";
     $course_number2 = 1;
     $id2 = 2;
     $test_course2 = new Course($course_name2, $course_number2, $id2);
     $test_course2->save();
     $test_course->update("BOBBIDY BEE BOO");
     $result = $test_course->getCourseName();
     $this->assertEquals("BOBBIDY BEE BOO", $result);
 }
开发者ID:kevintokheim,项目名称:University_Registrar,代码行数:16,代码来源:CourseTest.php

示例7: Course

while (!empty($courses) && ($course = $courses->fetch_object())) {
    $i++;
    ?>
                                            <tr id="<?php 
    echo 'assigned_row_id' . $i;
    ?>
">
                                                <td><?php 
    echo $course->course_code;
    ?>
</td>
                                                <td>
													<?php 
    $cc = new Course();
    $cc->getInfobyId($course->course_code);
    echo $cc->getCourseName();
    unset($cc);
    ?>
												</td>
                                                <td><?php 
    $d = new Department();
    $d->getInfo($course->course_dep);
    echo $d->getDepName();
    unset($d);
    ?>
												</td>
												<td><?php 
    echo $course->course_sem;
    ?>
</td>
												<td><?php 
开发者ID:mkrdip,项目名称:Management-Information-System,代码行数:31,代码来源:list_courses_appointed.php

示例8: testUpdateName

 function testUpdateName()
 {
     //Arrange
     $course_name = "Psychology 101";
     $course_number = "PSY101";
     $test_course = new Course($course_name, $course_number);
     $test_course->save();
     $new_name = "Psychology 101A";
     //Act
     $test_course->updateCourseName($new_name);
     //Assert
     $this->assertEquals("Psychology 101A", $test_course->getCourseName());
 }
开发者ID:jeffaustin81,项目名称:University_Registrar,代码行数:13,代码来源:CourseTest.php

示例9: Marks

        $m = new Marks();
        if (!$m->getGradeScale($var[0], $var[1])) {
            echo '<div class="alert alert-danger alert-dismissible" role="alert">';
            echo '<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>';
            echo 'Set grading scale first!';
            echo '</div>';
            die;
        }
        $m->generateResult($var[0], $var[1]);
        $c = new Course();
        $c->getInfobyId($var[0]);
        ?>
			<div class="box box-success">
				<div class="box-header">
					<h1 class="box-title">Final Result ( <?php 
        echo $var[0] . ' - ' . $c->getCourseName();
        unset($c);
        ?>
 )</h1>
					<button type="button" class="btn btn-success btn-lg pull-right" OnClick="approve(<?php 
        echo '\'' . Session::get('teacher_id') . '\',\'' . $var[0] . '\',\'' . $var[1] . '\'';
        ?>
);"><i class="glyphicon glyphicon-ok"></i> Approve Result!!</button>
				</div> <!-- ./box-header -->
				<div class="box-body">
					<?php 
        include ROOT_DIR . "results/result.php";
        ?>
				</div> <!-- ./box-body -->
			</div>
			<script>
开发者ID:mkrdip,项目名称:Management-Information-System,代码行数:31,代码来源:generate_result.php

示例10: testUpdate

 function testUpdate()
 {
     //Arrange
     $course_name = "History";
     $id = 1;
     $crn = "HIST101";
     $test_course = new Course($course_name, $crn, $id);
     $test_course->save();
     $new_course_name = "Economics";
     //Act
     $test_course->update($new_course_name);
     //Assert
     $this->assertEquals("Economics", $test_course->getCourseName());
 }
开发者ID:kennygrage,项目名称:epicUniversityFromPartners,代码行数:14,代码来源:CourseTest.php

示例11: testUpdateCourseName

 function testUpdateCourseName()
 {
     //Arrange
     $course_name = "Chemistry";
     $course_id = 1;
     $course_number = "1000";
     $test_course = new Course($course_name, $course_number, $course_id);
     $test_course->save();
     $new_course_name = "Fun with Chemistry - How to Make Bacon Bits";
     //Act
     $test_course->updateCourseName($new_course_name);
     //Assert
     $this->assertEquals("Fun with Chemistry - How to Make Bacon Bits", $test_course->getCourseName());
 }
开发者ID:nathanhwyoung,项目名称:registrar,代码行数:14,代码来源:CourseTest.php

示例12: testUpdate

 function testUpdate()
 {
     //Arrange
     $course_name = "History 110";
     $id = 1;
     $course_number = "HST110";
     $test_course = new Course($course_name, $id, $course_number);
     $test_course->save();
     $new_course_name = "Math 101";
     //Act
     $test_course->update($new_course_name);
     //Assert
     $this->assertEquals($new_course_name, $test_course->getCourseName());
 }
开发者ID:kylepratuch,项目名称:registrar2,代码行数:14,代码来源:CourseTest.php


注:本文中的Course::getCourseName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。