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


PHP TestSuite\TestCase类代码示例

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


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

示例1: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     $Folder = new Folder($this->Task->path . 'BakeTestApp');
     $Folder->delete();
     unset($this->Task);
 }
开发者ID:maitrepylos,项目名称:nazeweb,代码行数:12,代码来源:ProjectTaskTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->table = new Table(['table' => 'articles']);
     $this->table->primaryKey('id');
     $this->behavior = new AuditLogBehavior($this->table, ['whitelist' => ['id', 'title', 'body', 'author_id']]);
 }
开发者ID:themogwi,项目名称:audit-stash,代码行数:7,代码来源:AuditLogBehaviorTest.php

示例3: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->usersTable);
     unset($this->postsTable);
     unset($this->tagsTable);
     parent::tearDown();
 }
开发者ID:alusev,项目名称:cakephp3-soft-delete,代码行数:12,代码来源:SoftDeleteTraitTest.php

示例4: setUp

 /**
  * setup method.
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $templates = ['checkbox' => '<input type="checkbox" name="{{name}}" value="{{value}}"{{attrs}}>'];
     $this->templates = new StringTemplate($templates);
     $this->context = $this->getMock('Cake\\View\\Form\\ContextInterface');
 }
开发者ID:alexunique0519,项目名称:Blog_Cakephp_association,代码行数:12,代码来源:CheckboxWidgetTest.php

示例5: tearDown

 /**
  * tear down
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->Noticias->removeBehavior("CakePtbr.AjusteData");
     unset($this->Noticias, $this->Noticias);
     TableRegistry::clear();
 }
开发者ID:matheusviegas,项目名称:cake_ptbr,代码行数:11,代码来源:AjusteDataBehaviorTest.php

示例6: setUp

 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->stub = new ConsoleOutput();
     $this->io = new ConsoleIo($this->stub);
     $this->helper = new ProgressHelper($this->io);
 }
开发者ID:jdaosavanh,项目名称:clickerwebapp,代码行数:12,代码来源:ProgressHelperTest.php

示例7: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload();
     ConnectionManager::drop('test_variant');
     ConnectionManager::dropAlias('other_name');
 }
开发者ID:maitrepylos,项目名称:nazeweb,代码行数:12,代码来源:ConnectionManagerTest.php

示例8: tearDown

 public function tearDown()
 {
     unset($this->Notifier);
     unset($this->Manager);
     unset($this->Model);
     parent::tearDown();
 }
开发者ID:jxav,项目名称:cakephp-notifier,代码行数:7,代码来源:NotifierComponentTest.php

示例9: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload();
     Router::reload();
     Router::defaultRouteClass('Cake\\Routing\\Route\\Route');
 }
开发者ID:rashmi,项目名称:newrepo,代码行数:12,代码来源:RouterTest.php

示例10: setUp

 /**
  * setup
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $templates = ['textarea' => '<textarea name="{{name}}"{{attrs}}>{{value}}</textarea>'];
     $this->context = $this->getMock('Cake\\View\\Form\\ContextInterface');
     $this->templates = new StringTemplate($templates);
 }
开发者ID:JesseDarellMoore,项目名称:CS499,代码行数:12,代码来源:TextareaWidgetTest.php

示例11: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Cache::drop('redis');
     Cache::drop('redis_groups');
     Cache::drop('redis_helper');
 }
开发者ID:ripzappa0924,项目名称:carte0.0.1,代码行数:12,代码来源:RedisEngineTest.php

示例12: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Authorization);
     ResolvableAuthorizationInstance::reset();
     ResolvableAuthorizationRegistry::reset();
     parent::tearDown();
 }
开发者ID:pulse14,项目名称:cakephp-resolveauth,代码行数:12,代码来源:AuthorizationComponentTest.php

示例13: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Number);
     I18n::locale($this->locale);
     Number::defaultCurrency(false);
 }
开发者ID:KarimaLadhani,项目名称:cakephp,代码行数:12,代码来源:NumberTest.php

示例14: tearDown

 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Shell);
     Configure::write('App.namespace', 'App');
     Plugin::unload();
 }
开发者ID:rashmi,项目名称:newrepo,代码行数:12,代码来源:CompletionShellTest.php

示例15: tearDown

 /**
  * Tear down method.
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload('Union/Core');
     Plugin::unload('TestPlugin');
     unset($this->ToolBar, $this->View);
 }
开发者ID:UnionCMS,项目名称:Core,代码行数:12,代码来源:ToolBarHelperTest.php


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