本文整理汇总了PHP中TestCase::SetUp方法的典型用法代码示例。如果您正苦于以下问题:PHP TestCase::SetUp方法的具体用法?PHP TestCase::SetUp怎么用?PHP TestCase::SetUp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestCase
的用法示例。
在下文中一共展示了TestCase::SetUp方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
/**
* This will run at the beginning of every test method
*/
public function setUp()
{
// Parent setup
parent::SetUp();
Session::start();
// Instantiate SocialHelper class
$this->viewHelper = new viewHelper();
}
示例2: setUp
public function setUp()
{
parent::SetUp();
$this->service = new CodeTrim\Services\CatalogService();
}
示例3: setUp
public function setUp()
{
parent::SetUp();
$this->faker = Faker\Factory::create();
$this->service = new ProductService();
}
示例4: SetUp
public function SetUp()
{
parent::SetUp();
}
示例5: setUp
public function setUp()
{
parent::SetUp();
$this->createSettings();
$this->catalogService = new CatalogService();
}
示例6: setUp
public function setUp()
{
parent::SetUp();
$this->service = new TaxService();
}
示例7: setUp
public function setUp()
{
parent::SetUp();
$this->service = new CountryService();
}
示例8: SetUp
public function SetUp()
{
parent::SetUp();
$this->property_service = \App::make(PropertyServiceInterface::class);
}
示例9: setUp
public function setUp()
{
parent::SetUp();
$this->service = new \CodeTrim\Services\ShippingMethodService();
}
示例10: setUp
public function setUp()
{
parent::SetUp();
$this->service = new LanguageService();
}