當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。