承接 danrspencer/phpunit-expect-syntax 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

danrspencer/phpunit-expect-syntax

最新稳定版本:2.0.0

Composer 安装命令:

composer require --dev danrspencer/phpunit-expect-syntax

包简介

Expect syntax for PHPUnit assertions

README 文档

README

A wrapper for PHPUnit which allows expect assertion syntax inspired by JavaScript's Jasmine.

Note: currently incomplete - if I'm missing a matcher you need create an issue or pull request

Installation

Step 1. Install via Composer

The preferred way to install this bundle is via Composer. Just add it to your composer.json:

{
    "require": {
        // ...
        "danrspencer/phpunit-expect-syntax": "2.0.0"
    }
}

Step 2. Include the expect-syntax.php file

To begin using the syntax you'll need to include the expect-syntax.php file. This can be done in your PHPUnit bootstrap (recommended) or in invididual tests.

e.g.

require_once '../vendor/danrspencer/phpunit-expect-syntax/ExpectSyntax.php';

Example usage

/** @test */
function it_tests_something() {
	expect($this)->toEqual($that);	
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-02-14