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

PHP TestBase类代码示例

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

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



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

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     // Set the languages
     config()->set('translatable.locales', ['en', 'tr']);
     $this->setUpNodeType();
 }
开发者ID:NuclearCMS,项目名称:Hierarchy,代码行数:7,代码来源:NodeTest.php


示例2: setup

 public function setup()
 {
     parent::setup();
     $this->scheduleRepository = $this->getMock('IScheduleRepository');
     $this->layout = $this->getMock('IScheduleLayout');
     $this->rule = new SchedulePeriodRule($this->scheduleRepository, $this->fakeUser);
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:SchedulePeriodRuleTests.php


示例3: setup

 public function setup()
 {
     parent::setup();
     $this->attributeService = $this->getMock('IAttributeService');
     $this->userRepository = $this->getMock('IUserViewRepository');
     $this->validator = new UserRequestValidator($this->attributeService, $this->userRepository);
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:UserRequestValidatorTests.php


示例4: setup

 public function setup()
 {
     parent::setup();
     $this->server = new FakeRestServer();
     $this->controller = $this->getMock('IUserSaveController');
     $this->service = new UsersWriteWebService($this->server, $this->controller);
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:UsersWriteWebServiceTests.php


示例5: setUp

 public function setUp()
 {
     parent::setUp();
     // We do this due to a bug
     // otherwise helper is not loaded
     app()->make('settings');
 }
开发者ID:kenarkose,项目名称:settlement,代码行数:7,代码来源:SettingHelperTest.php


示例6: setup

 public function setup()
 {
     parent::setup();
     $this->activationRepo = $this->getMock('IAccountActivationRepository');
     $this->userRepo = $this->getMock('IUserRepository');
     $this->activation = new AccountActivation($this->activationRepo, $this->userRepo);
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:AccountActivationTests.php


示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->path = FIXTURES . DS . 'tests';
     $this->bootstrap = dirname(FIXTURES) . DS . 'bootstrap.php';
     $this->phpunitWrapper = PARATEST_ROOT . '/bin/phpunit-wrapper';
 }
开发者ID:bruno-arsene,项目名称:paratest,代码行数:7,代码来源:WorkerTest.php


示例8: setUp

 public function setUp()
 {
     parent::setUp();
     if (!self::$connectionSet) {
         LudoDb::setConnectionType('PDO');
     }
 }
开发者ID:manishkhanchandani,项目名称:mkgxy,代码行数:7,代码来源:PDOTests.php


示例9: setup

 public function setup()
 {
     parent::setup();
     $this->page = new FakeSavedReportsPage();
     $this->service = $this->getMock('IReportingService');
     $this->presenter = new SavedReportsPresenter($this->page, $this->fakeUser, $this->service);
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:SavedReportsPresenterTests.php


示例10: setup

 public function setup()
 {
     parent::setup();
     $this->fakeAuth = new FakeAuth();
     $this->loginContext = $loginContext = new WebLoginContext(new LoginData(true));
     $this->webAuth = new WebAuthentication($this->fakeAuth, $this->fakeServer);
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:WebAuthenticationTests.php


示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->setUpNodeType();
     NodeSource::flushEventListeners();
     NodeSource::boot();
 }
开发者ID:NuclearCMS,项目名称:Hierarchy,代码行数:7,代码来源:NodeSourceTest.php


示例12: setup

 public function setup()
 {
     parent::setup();
     $this->attributeRepository = new FakeAttributeRepository();
     $this->controller = new AttributeSaveController($this->attributeRepository);
     $this->session = new FakeWebServiceUserSession(1);
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:AttributeSaveControllerTests.php


示例13: setup

 public function setup()
 {
     $this->userRepository = $this->getMock('IUserRepository');
     $this->user = new FakeUserSession();
     $this->repo = new ScheduleAdminScheduleRepository($this->userRepository, $this->user);
     parent::setup();
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:ScheduleAdminScheduleRepositoryTests.php


示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $s = new Section();
     $s->drop()->yesImSure();
     $s->createTable();
 }
开发者ID:manishkhanchandani,项目名称:mkgxy,代码行数:7,代码来源:ColumnAliasTest.php


示例15: setup

 public function setup()
 {
     parent::setup();
     $this->page = $this->getMock('IManageResourceGroupsPage');
     $this->resourceRepository = $this->getMock('IResourceRepository');
     $this->presenter = new ManageResourceGroupsPresenter($this->page, $this->fakeUser, $this->resourceRepository);
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:ManageResourceGroupsPresenterTests.php


示例16: setup

 public function setup()
 {
     parent::setup();
     $this->page = $this->getMock('ICalendarSubscriptionPage');
     $this->subscriptionService = $this->getMock('ICalendarSubscriptionService');
     $this->validator = new CalendarSubscriptionValidator($this->page, $this->subscriptionService);
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:CalendarSubscriptionValidatorTests.php


示例17: setUp

 public function setUp()
 {
     parent::setUp();
     $g = new TestGame();
     $g->drop()->yesImSure();
     $g->createTable();
 }
开发者ID:manishkhanchandani,项目名称:mkgxy,代码行数:7,代码来源:AccessorTest.php


示例18: setup

 public function setup()
 {
     parent::setup();
     $this->authentication = $this->getMock('IWebServiceAuthentication');
     $this->server = new FakeRestServer();
     $this->service = new AuthenticationWebService($this->server, $this->authentication);
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:AuthenticationWebServiceTests.php


示例19: setUp

 public function setUp()
 {
     parent::setUp();
     // Let the current user do anything.
     global $current_user;
     $current_user->add_cap('promote_users');
 }
开发者ID:gitter-badger,项目名称:tabulate-1,代码行数:7,代码来源:ReportsTest.php


示例20: setup

 public function setup()
 {
     parent::setup();
     $this->now = Date::Parse('2011-07-20 13:41:22', 'America/Chicago');
     Date::_SetNow($this->now);
     $this->timezone = $this->now->Timezone();
 }
开发者ID:utn-frm-si,项目名称:booked,代码行数:7,代码来源:Report_RangeTests.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP TestCase类代码示例发布时间:2022-05-23
下一篇:
PHP Test类代码示例发布时间: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