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


PHP TestCase::setUp方法代码示例

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


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

示例1: setUp

 public function setUp()
 {
     $this->rootFixturesDir = dirname(__DIR__);
     parent::setUp();
     $this->policy = new Policy($this->client->reveal(), new Api());
     $this->policy->id = 'POLICY_ID';
 }
开发者ID:boxrice007,项目名称:openstack,代码行数:7,代码来源:PolicyTest.php

示例2: setUp

 public function setUp()
 {
     $this->rootFixturesDir = dirname(__DIR__);
     parent::setUp();
     $this->domain = new Domain($this->client->reveal(), new Api());
     $this->domain->id = 'DOMAIN_ID';
 }
开发者ID:kunalp,项目名称:openstack,代码行数:7,代码来源:DomainTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rootFixturesDir = dirname(__DIR__);
     $this->flavor = new Flavor($this->client->reveal(), new Api());
     $this->flavor->id = 1;
 }
开发者ID:karnajani,项目名称:openstack,代码行数:7,代码来源:FlavorTest.php

示例4: setUp

 public function setUp()
 {
     $this->rootFixturesDir = dirname(__DIR__);
     parent::setUp();
     $this->user = new User($this->client->reveal(), new Api());
     $this->user->id = 'USER_ID';
 }
开发者ID:kunalp,项目名称:openstack,代码行数:7,代码来源:UserTest.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rootFixturesDir = dirname(__DIR__);
     $this->volumeType = new VolumeType($this->client->reveal(), new Api());
     $this->volumeType->id = '1';
 }
开发者ID:karnajani,项目名称:openstack,代码行数:7,代码来源:VolumeTypeTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rootFixturesDir = __DIR__;
     $this->def = ['method' => 'GET', 'path' => 'test', 'params' => []];
     $this->operator = new TestOperator($this->client->reveal(), new ComputeV2Api());
 }
开发者ID:php-opencloud,项目名称:openstack,代码行数:7,代码来源:OperatorTraitTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rootFixturesDir = dirname(__DIR__);
     $this->securityGroup = new SecurityGroup($this->client->reveal(), new Api());
     $this->securityGroup->id = self::SECURITY_GROUP_ID;
 }
开发者ID:php-opencloud,项目名称:openstack,代码行数:7,代码来源:SecurityGroupTest.php

示例8: setUp

 public function setUp()
 {
     $this->rootFixturesDir = dirname(__DIR__);
     parent::setUp();
     $this->project = new Project($this->client->reveal(), new Api());
     $this->project->id = 'PROJECT_ID';
 }
开发者ID:karnajani,项目名称:openstack,代码行数:7,代码来源:ProjectTest.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rootFixturesDir = dirname(__DIR__);
     $this->image = new Image($this->client->reveal(), new Api());
     $this->image->id = 'imageId';
 }
开发者ID:karnajani,项目名称:openstack,代码行数:7,代码来源:ImageTest.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rootFixturesDir = dirname(__DIR__);
     $this->network = new Network($this->client->reveal(), new Api());
     $this->network->id = 'networkId';
 }
开发者ID:boxrice007,项目名称:openstack,代码行数:7,代码来源:NetworkTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rootFixturesDir = dirname(__DIR__);
     $this->floatingIp = new FloatingIp($this->client->reveal(), new Api());
     $this->floatingIp->id = 'id';
 }
开发者ID:php-opencloud,项目名称:openstack,代码行数:7,代码来源:FloatingIpTest.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rootFixturesDir = dirname(__DIR__);
     $this->securityGroupRule = new SecurityGroupRule($this->client->reveal(), new Api());
     $this->securityGroupRule->id = 'id';
 }
开发者ID:php-opencloud,项目名称:openstack,代码行数:7,代码来源:SecurityGroupRuleTest.php

示例13: setUp

 public function setUp()
 {
     $this->rootFixturesDir = dirname(__DIR__);
     parent::setUp();
     $this->credential = new Credential($this->client->reveal(), new Api());
     $this->credential->id = 'CRED_ID';
 }
开发者ID:boxrice007,项目名称:openstack,代码行数:7,代码来源:CredentialTest.php

示例14: setUp

 public function setUp()
 {
     $this->rootFixturesDir = dirname(__DIR__);
     parent::setUp();
     $this->token = new Token($this->client->reveal(), new Api());
     $this->token->id = 'TOKEN_ID';
 }
开发者ID:karnajani,项目名称:openstack,代码行数:7,代码来源:TokenTest.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rootFixturesDir = dirname(__DIR__);
     $this->container = new Container($this->client->reveal(), new Api());
     $this->container->name = self::NAME;
 }
开发者ID:boxrice007,项目名称:openstack,代码行数:7,代码来源:ContainerTest.php


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