本文整理匯總了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);
}