rmiller/error-extension 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

rmiller/error-extension

最新稳定版本:0.5.0

Composer 安装命令:

composer require rmiller/error-extension

包简介

Fatal error handling extension for Behat

关键字:

README 文档

README

Scrutinizer Code Quality Build Status

Behat extension to provide formatted error messages for fatal errors.

This stops the large stack traces appearing on every fatal error. Instead a simpler formatted error showing the error message, file and line number is shown. If you need the full stack trace then they will still appear when Behat is run with the verbose flag.

Since this does work in the shutdown function there is a good chance things will go horribly wrong if there are any errors/exceptions in handing the errors. It's an extension to a dev tool though so this is not that worth worrying about.

Installation

This extension requires:

  • Behat 3.0+
  • PHP 5.4+

The easiest way to install it is to use Composer

$ composer require --dev rmiller/error-extension:^0.5

Activate the extension by specifying its class in your behat.yml:

# behat.yml
default:
  # ...
  extensions:
    RMiller\BehatSpec\Extension\ErrorExtension\ErrorExtension: ~

Error Observers

Observers can be registered for the errors to handle them in some way from another Behat extension. These must implement the following interface:

namespace RMiller\BehatSpec\Extension\ErrorExtension\Observer;

interface ErrorObserver
{
    public function notify(array $error);
}

and be tagged with rmiller.error_listener in the service configuration.

Currently this is used by the PhpSpecExtension to trigger running PhpSpec commands on relevant errors.

统计信息

  • 总下载量: 21.35k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 3
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固