kcmerrill/phpwebunit 问题修复 & 功能扩展

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

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

kcmerrill/phpwebunit

Composer 安装命令:

composer require kcmerrill/phpwebunit

包简介

A simpletest like visual for phpunit. Simple and easy to use!

README 文档

README

Love TDD? Love PHPUnit? Love the simplicity of SimpleTest? Me too .. this is a simple wrapper utility that lets one use phpunit in a web browser, that has the same visual clues that simpletest does.

A simple green bar, or a red bar(with phpunit output) showing the issue.

Here is a youtube video describing it's usage: http://www.youtube.com/watch?v=an5ZjEVTg0g

It's usage is pretty simple too, depending on autoloading, you can get it down to two lines per test.

Prefered Way: Use an IDE that has a live preview functionality.

Set your base path to say: http://test.example.com/phpwebunit/index.php/ <-- You'll need to create this. In index.php have code that would look something like this:

$sot = __DIR__ . '/../../' . implode('/', $test);
if(file_exists($sot)){
    new \kcmerrill\tdd\phpwebunit('', array('bin'=>'/usr/local/php5/bin/phpunit'), array('SCRIPT_FILENAME'=>$sot));
}

Another Way:

//This will test the current php file
require_once __FILE__. '/phpwebunit';
new kcmerrill\tdd\phpwebunit;


//This will test the current php's directory
require_once __FILE__. '/phpwebunit';
new kcmerrill\tdd\phpwebunit(__DIR__);

Here are some screenshots: Screenshot

Build Status

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2013-01-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固