try/predict-output 问题修复 & 功能扩展

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

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

try/predict-output

Composer 安装命令:

composer require try/predict-output

包简介

Prediction package for CLI output

README 文档

README

Prediction package for CLI output

Build Status

Install

$ composer require try/predict-output

Usage

<?php
require_once '/path/to/autoload.php';

use TryPhp\PredictOutputTrait;

$assertions = new class() {
	use PredictOutputTrait();
} 

$assertions->predictOutput(function () {
	echo '\e[33msomething\n';
}, 'something'); // won't throw an exception

$assertions->predictOutput(function () {
	echo '\e[33msomething\n';
}, 'something other'); // will throw an exception

API

Methods

predictOutput($capture, $content)

Method to compare an output capture with a given string.

Arguments
Arguments Type Description
$capture callable Closure from which every output buffer write will be captured.
$content string Content to which the output will be compared to.

License

GPL-2.0 © Willi Eßer

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2017-10-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固