本文整理汇总了PHP中Cake\TestSuite\TestCase类的典型用法代码示例。如果您正苦于以下问题:PHP TestCase类的具体用法?PHP TestCase怎么用?PHP TestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TestCase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
unset($this->FixedLengthExport);
parent::tearDown();
//不要なファイルを削除する
unlink($this->test2_fixed_length_path);
}
开发者ID:satthi,项目名称:csv-combine-plugin-for-cakephp,代码行数:12,代码来源:FixedLengthComponentTest.php
示例17: setUp
public function setUp()
{
parent::setUp();
Configure::write('App.namespace', 'Spekkoek\\Test\\TestApp');
$this->factory = new ControllerFactory();
$this->response = $this->getMock('Cake\\Network\\Response');
}
开发者ID:markstory,项目名称:cakephp-spekkoek,代码行数:7,代码来源:ControllerFactoryTest.php
示例18: setUp
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->View = new View();
$this->Time = new TimeHelper($this->View);
Time::$defaultLocale = 'en_US';
}
开发者ID:maitrepylos,项目名称:nazeweb,代码行数:12,代码来源:TimeHelperTest.php
示例19: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
//fixtureの終了
$this->fixtureManager->shutdown();
unset($this->fixtureManager);
parent::tearDown();
}
开发者ID:satthi,项目名称:plugin-test-support,代码行数:12,代码来源:AppTestCase.php
示例20: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->Acl);
Cache::clear(false, 'tests');
Cache::drop('tests');
}
开发者ID:edukondaluetg,项目名称:acl,代码行数:12,代码来源:CacheDbAclTest.php
注:本文中的Cake\TestSuite\TestCase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论