Expective
Framework-agnostic expectations library.
Stability
This project is still in it's infancy and therefore is not considered to be production ready.
Installation
Expective utilizes composer to manage it's dependencies - make sure you have composer installed on your system.
$ composer require lepczynski-s/expective
Usage
Expective expects from you just one thing - an
Expective\Contracts\IBinding
interface implementation
to communicate expectations results to your test-runner.
function expect($subject) {
// Creating IBinding instance
$binding = new YourFrameworkBinding();
// Returning an Expectation instance
return new Expectation($subject, $binding);
}
Example expectations
You can make some expectations
once you have a proper expect()
method.
expect(true)->to_be->equal_to(true);
expect(true)->to_be_not->same_as(false);
License
Expective is licensed under MIT license. See license file for more information.
© 2016 Sebastian Łepczyński