2017 © Pedro Peláez
 

library pspec

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

image

jasonmccreary/pspec

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

  • Thursday, June 30, 2016
  • by jasonmccreary
  • Repository
  • 0 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PSpec

Build Status Latest Stable Version, (*1)

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., (*2)

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:, (*3)

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

Usage

Run your tests using the pspec command:, (*4)

vendor/bin/pspec

Documentation

Documentation and additional examples will be available in the official release., (*5)

License

PSpec is open-sourced software licensed under the MIT license., (*6)

Thanks

PSpec was built atop matura and heavily inspired by RSpec and Jasmine. I want to recognize and thank these projects., (*7)

The Versions

30/06 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Jason McCreary

bdd tdd test framework

30/06 2016

v1.0.0-alpha

1.0.0.0-alpha

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

  Sources   Download

MIT

The Requires

 

by Jason McCreary

bdd tdd test framework