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


PHP Booking::get_department方法代码示例

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


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

示例1: testBookingModule

 function testBookingModule()
 {
     $today = date('y-m-d');
     $b = new Booking($today, "", "Meghan2075551234", "pending", "", "Tiny", array("Meghan:mother", "Jean:father", "Teeny:sibling"), array(), "", "", "Millie2073631234", "Maine Med", "SCU", "00000000000", "\$10 per night", "", "", "", "new");
     $this->assertTrue($b->get_id() == $today . "Meghan2075551234");
     $this->assertEqual($b->get_date_submitted(), $today);
     $this->assertTrue($b->get_date_in() == "");
     $this->assertEqual($b->get_guest_id(), "Meghan2075551234");
     $this->assertEqual($b->get_status(), "pending");
     $this->assertEqual($b->get_room_no(), "");
     $this->assertEqual($b->get_patient(), "Tiny");
     $occ = $b->get_occupants();
     $this->assertTrue(in_array("Jean:father", $occ));
     $this->assertEqual($b->get_linked_room(), "");
     $this->assertEqual($b->get_date_out(), "");
     $this->assertEqual($b->get_referred_by(), "Millie2073631234");
     $this->assertEqual($b->get_hospital(), "Maine Med");
     $this->assertEqual($b->get_department(), "SCU");
     $this->assertEqual($b->get_payment_arrangement(), "\$10 per night");
     $this->assertEqual($b->overnight_use(), "");
     $this->assertEqual($b->day_use(), "");
     $this->assertEqual($b->get_mgr_notes(), "");
     $this->assertEqual($b->get_flag(), "new");
     for ($i = 0; $i < 11; $i++) {
         $this->assertEqual($b->get_health_question($i), "0");
     }
     $b->add_occupant("Jordan", "brother");
     $this->assertEqual(sizeof($b->get_occupants()), 4);
     $b->remove_occupant("Jordan");
     $this->assertEqual(sizeof($b->get_occupants()), 3);
     echo "testBooking complete";
 }
开发者ID:kumarsivarajan,项目名称:rmh-roomreservation-maker,代码行数:32,代码来源:testBooking.php


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