當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Test\TestCase類代碼示例

本文整理匯總了PHP中OpenStack\Test\TestCase的典型用法代碼示例。如果您正苦於以下問題:PHP TestCase類的具體用法?PHP TestCase怎麽用?PHP TestCase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了TestCase類的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類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。