91carriage/phpunit-hhi
最新稳定版本:6.2.6
Composer 安装命令:
composer require --dev 91carriage/phpunit-hhi
包简介
HHI definitions for PHPUnit
README 文档
README
This package provides HHI files for the main PHPUnit package. It does not provide any runtime functionality.
HHI files are files which tell the Hack tools about non-Hack code, providing the necessary names and types to allow Hack to make sure you're using the non-Hack code correctly.
Installation
The easiest way to install this package is with Composer.
To do so, add "91carriage/phpunit-hhi": "~6.2.0" to the require-dev section
of your composer.json or run
composer require --dev '91carriage/phpunit-hhi:~6.2.0'.
It is not recommended to install this as part of your requires section as it
should only be used during development.
Manual installation simply involves downloading the provided source code and copying it into your repository.
Issues
Issues can be submitted to the issue tacker.
If you are unable to create an issue through this, or think that it should not
be publicly disclosed, they can also be emailed directly to
issues@91carriage.com or brought to my attention on IRC, where I
go by the handles simon_w and simon_w|air in the offical #hhvm
channel on FreeNode.
Contributing
Contributions are very welcome. Please make sure that you run hh_client in the
source directory with assume_php=false in your .hhconfig and no errors are
reported.
Code style
For Hack files, the coding style is enforced by the hh_format command, which
is included with the Hack tools alongside hh_client. As the HHI files are decl
files, you need to run hh_format with the --yolo option for these files.
For other files, the basic requirements are:
- Lines are no more than 80 characters wherever possible.
- Indentation is 2 spaces.
- Unix-style (
\n) line endings.
File types
- The HHI files should all be in decl mode.
- The test files should extend
HHITestand be in strict mode. - The HHIT files should be in strict mode.
Non-existent class types
If an object type is required and that object is in a different package or is built into HHVM and doesn't yet have a HHI file, add the expected type as a comment.
For example, if the function foo returns a SplObject and there's no inbuilt
HHI file for SplObject, the definition of foo would be:
function foo() /*: SplObject*/;
License
This code is provided under the MIT (X11 variant) license. The full text of which can be found in the LICENSE.md file.
91carriage/phpunit-hhi 适用场景与选型建议
91carriage/phpunit-hhi 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 77.54k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 03 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「testing」 「phpunit」 「hack」 「hhvm」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 91carriage/phpunit-hhi 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 91carriage/phpunit-hhi 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 91carriage/phpunit-hhi 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
HiDev plugin for PHPUnit
Testing Suite For Lumen like Laravel does.
A cli tool which generates unit tests.
Hack Logging Package
Dependency Injection Container For HHVM/Hack
Middleware Dispatcher For Hack
统计信息
- 总下载量: 77.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 13
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-09