定制 dcodeteam/phpunit-for-bitrix 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dcodeteam/phpunit-for-bitrix

Composer 安装命令:

composer require dcodeteam/phpunit-for-bitrix

包简介

Based on https://github.com/osotov/phpunit-for-bitrix. Base test class for unit tests inside 1C-Bitrix framework environment

README 文档

README

Based on osotov/phpunit-for-bitrix.

Base test class for unit tests inside 1C-Bitrix framework environment

note

This package requires latest versions of php (>= 5.5.9) and phpunit (>=4.7.0 <7.0.0)

It might work fine with latest versions (7+) but was tested only with phpunit ^6 (6.5.8).

installation

To install package, run the command below and you will get the latest version

composer require dcodeteam/phpunit-for-bitrix

Copy phpunit.xml.dist file from package to document root. Set up your tests directory inside tag. If you want to use another bootstrap file set it instead default inside bootstrap attribute.

usage

If you use old phpunit (>5.0.0) extend Dcode\Bitrix\TestCase class in your test cases.

This class uses mock framework Mockery to ease mock and stub creation and it uses Faker to help you with creation of dummy data.

For new php unit (>=5.0.0) use \PHPUnit\Framework\TestCase.

统计信息

  • 总下载量: 199
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固