本文整理汇总了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();
}
示例2: setUp
public function setUp()
{
parent::setUp();
$plugin = new Loader($this->container);
$plugin->loadSchema('Timetable');
$plugin->load('Timetable');
}
示例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();
}
示例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;
}
示例5: setUp
public function setUp()
{
parent::setUp();
$plugin = new Loader($this->container);
$plugin->loadSchema('Budget');
}
示例6: setUp
public function setUp()
{
parent::setUp();
$plugin = new Loader($this->container);
$plugin->scan();
}
示例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();
}
示例8: setUp
protected function setUp()
{
parent::setUp();
$this->hideDeprecated();
}
示例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();
}
示例10: setUp
protected function setUp()
{
parent::setUp();
$this->entity = new \Evolution7\SocialApi\Entity\User();
}
示例11: setUp
public function setUp()
{
parent::setUp();
$this->plugin = new Plugin($this->container);
}