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


PHP Base::setUp方法代码示例

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


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

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->client = $this->getMockBuilder('\\Kanboard\\Core\\Ldap\\Client')->setMethods(array('getConnection'))->getMock();
     $this->query = $this->getMockBuilder('\\Kanboard\\Core\\Ldap\\Query')->setConstructorArgs(array($this->client))->setMethods(array('execute', 'hasResult', 'getEntries'))->getMock();
     $this->group = $this->getMockBuilder('\\Kanboard\\Core\\Ldap\\Group')->setConstructorArgs(array($this->query))->setMethods(array('getAttributeName', 'getBasDn'))->getMock();
 }
开发者ID:Trapulo,项目名称:kanboard,代码行数:7,代码来源:LdapGroupTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $plugin = new Loader($this->container);
     $plugin->loadSchema('Timetable');
     $plugin->load('Timetable');
 }
开发者ID:dmkcv,项目名称:plugin-timetable,代码行数:7,代码来源:TimetableTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->client = $this->getMockBuilder('\\Kanboard\\Core\\Ldap\\Client')->setMethods(array('getConnection'))->getMock();
     $this->query = $this->getMockBuilder('\\Kanboard\\Core\\Ldap\\Query')->setConstructorArgs(array($this->client))->setMethods(array('execute', 'hasResult', 'getEntries'))->getMock();
     $this->user = $this->getMockBuilder('\\Kanboard\\Core\\Ldap\\User')->setConstructorArgs(array($this->query))->setMethods(array('getAttributeUsername', 'getAttributeEmail', 'getAttributeName', 'getAttributeGroup', 'getGroupAdminDn', 'getGroupManagerDn', 'getBasDn'))->getMock();
 }
开发者ID:peripatetic-sojourner,项目名称:kanboard,代码行数:7,代码来源:LdapUserTest.php

示例4: setUp

    /**
     *
     */
    public function setUp()
    {
        $this->parser = new Parser(new \Psr\Log\NullLogger(), new \MattCannon\Blm\Loaders\BlmTestLoader());
        $this->testClass = $this->parser;
        parent::setUp();
        $this->validDocument = <<<BLM
#HEADER#
VERSION : 3i
EOF : '|'
EOR : '~'

#DEFINITION#
AGENT_REF|HOUSE_NAME_NUMBER|STREET_NAME|OS_TOWN_CITY|OS_REGION|ZIPCODE|COUNTRY_CODE|FEATURE1|FEATURE2|FEATURE3|FEATURE4|FEATURE5|FEATURE6|FEATURE7|FEATURE8|FEATURE9|FEATURE10|SUMMARY|DESCRIPTION|CREATE_DATE|UPDATE_DATE|BRANCH_ID|STATUS_ID|BEDROOMS|PRICE|PRICE_QUALIFIER|NEW_HOME_FLAG|PROP_SUB_ID|DISPLAY_ADDRESS|PUBLISHED_FLAG|LET_DATE_AVAILABLE|LET_BOND|LET_TYPE_ID|LET_FURN_ID|LET_RENT_FREQUENCY|TRANS_TYPE_ID|DEVELOPMENT_NAME|MEDIA_IMAGE_00|MEDIA_IMAGE_01|MEDIA_IMAGE_02|MEDIA_IMAGE_03|MEDIA_IMAGE_04|MEDIA_IMAGE_05|MEDIA_IMAGE_06|MEDIA_IMAGE_07|MEDIA_IMAGE_08|MEDIA_IMAGE_09|MEDIA_VIRTUAL_TOUR_00|~

#DATA#
37565_1160298|Panorama Beach |Sunny Beach |NESSEBAR|BURGAS||BG|||||||||||A fully furnished studio apartment in the Panorama Beach complex benefiting from on site facilities including restaurant and bar, spa, supermarket, banks, separate swimming pools for adults and chi...|A fully furnished studio apartment in the Panorama Beach complex benefiting from on site facilities including restaurant and bar, spa, supermarket, banks, separate swimming pools for adults and children and 24 hour security. Further benefits include South Coast beach situated just 200 metres away and Burgas International Airport is approximately 23km away.<br/> <BR><BR><B>FEATURES</B><BR><BR><LI>WIDE CHOICE OF SHOPS & RESTAURANTS<LI>ONE OF THE OLDEST TOWNS IN EUROPE<LI>OLD TOWN IS PROTECTED AS A UNESCO WORLD HERITAGE SITE<LI>MOST FAVOURED BY TOURISTS ON THE SOUTHERN COAST<LI>NESSEBAR BOASTS FOUR MILES OF GOLDEN SANDY BEACHES WITH BLUE FLAG AWARD STATUS<BR><BR><br><br><p><b>Lounge/Bedroom:</b><br>laminate flooring, painted walls,air conditioning unit, PVC joinery.<br/></p><p><b>Kitchen:</b><br>laminate flooring, painted walls, tap with a counter, inside doors MDF, front/entrance doors - MDF, option for cable television and one telephone.<br/></p><p><b>Bathroom:</b><br>terracotta flooring, tiled walls, low level WC, wash hand basin with mixer tap, shower cubicle, electric boiler.<br/></p><p><b>Terrace:</b><br>approx 6.72 square metres, roof terrace/garden overlooking ocean and swimming pool.<br/></p>|2008-03-16 21:29:36|2008-03-15 16:28:36|37565|0|0|53,366||N|8|Panorama Beach  ,Sunny Beach  ,Nessebar ,Burgas ,Bulgaria|1|||0|2||1||37565_1160298_IMG_00.jpg|37565_1160298_IMG_01.jpg|37565_1160298_IMG_02.jpg|||||||||~
#END#
BLM;
    }
开发者ID:kplese,项目名称:blm,代码行数:22,代码来源:ParserTest.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $plugin = new Loader($this->container);
     $plugin->loadSchema('Budget');
 }
开发者ID:eSkiSo,项目名称:plugin-budget,代码行数:6,代码来源:HourlyRateTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $plugin = new Loader($this->container);
     $plugin->scan();
 }
开发者ID:kanboard,项目名称:plugin-timetable,代码行数:6,代码来源:TimetableTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->container['objectStorage'] = $this->getMockBuilder('\\Kanboard\\Core\\ObjectStorage\\FileStorage')->setConstructorArgs(array($this->container))->setMethods(array('put', 'moveFile', 'remove'))->getMock();
 }
开发者ID:namaljayathunga,项目名称:kanboard,代码行数:5,代码来源:FileTest.php

示例8: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->hideDeprecated();
 }
开发者ID:makeandship,项目名称:wordpress-fantastic-elasticsearch,代码行数:5,代码来源:DeprecatedClassBase.php

示例9: setUp

 /**
  * setup ready for testing, and default property object with valid items
  */
 public function setUp()
 {
     $propertyArray = ['statusId' => 0, 'priceQualifier' => 0, 'publishedFlag' => 0, 'letTypeId' => 0, 'letFurnId' => 0, 'letRentFrequency' => 0, 'tenureTypeId' => 1, 'transTypeId' => 1, 'mediaImage01' => 'image1', 'mediaImageText01' => 'Image Caption', 'mediaImage02' => 'image2', 'mediaImage03' => 'image3', 'mediaImage04' => '', 'mediaImage60' => 'epc', 'mediaImageText60' => 'EPC', 'feature1' => 'feature1', 'feature2' => 'feature2', 'feature3' => '', 'propertyName' => 'test name'];
     $this->testClass = new \MattCannon\Blm\PropertyObject($propertyArray);
     parent::setUp();
 }
开发者ID:kplese,项目名称:blm,代码行数:9,代码来源:PropertyObjectTest.php

示例10: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->entity = new \Evolution7\SocialApi\Entity\User();
 }
开发者ID:jenalgit,项目名称:social-api,代码行数:5,代码来源:UserTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->plugin = new Plugin($this->container);
 }
开发者ID:kanboard,项目名称:plugin-s3,代码行数:5,代码来源:PluginTest.php


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