定制 jasonmccreary/pspec 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jasonmccreary/pspec

Composer 安装命令:

composer require jasonmccreary/pspec

包简介

PSpec is a modern, BDD-style testing framework for PHP.

README 文档

README

Build Status Latest Stable Version

PSpec is a modern, BDD-style testing framework for PHP - enabling you to write more readable tests using its simple, conversational DSL and expressive, fluent assertions.

describe('string functions', function () {
    describe('strtolower', function () {
        it('should return a string with all its characters lower case', function () {
            expect(strtolower('PSpec'))->toEqual('pspec');
        });
    });

    describe('strpos', function () {
        context('when needle is found', function () {
            it('should return the first character index of needle within haystack', function () {
                expect(strpos('PSpec', 'Spec'))->toBe(1);
            });
        });

        context('when needle is not found', function () {
            it('should return false', function () {
                expect(strpos('PSpec', 'PHP'))->toBeFalse();
            });
        });
    });
});

Installation

Install PSpec as a development dependency to your project using Composer:

composer require --dev jasonmccreary/pspec:1.*@alpha

Usage

Run your tests using the pspec command:

vendor/bin/pspec

Documentation

Documentation and additional examples will be available in the official release.

License

PSpec is open-sourced software licensed under the MIT license.

Thanks

PSpec was built atop matura and heavily inspired by RSpec and Jasmine. I want to recognize and thank these projects.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固