• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Test\TestCase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了TestCase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: setUp

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


示例17: setUp

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


示例18: setUp

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


示例19: setUp

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


示例20: setUp

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Testbench\TestCase类代码示例发布时间:2022-05-23
下一篇:
PHP opensrs\Base类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap