2017 © Pedro Peláez
 

library sucre-assertion

image

cyrill/sucre-assertion

  • Saturday, February 1, 2014
  • by t-cyrill
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Sucre/Assertion

Sucre/Assertion is simple loosely-coupled assertion PHP library., (*1)

## Requirement

  • PHP 5.4 or later

## Installation

Download the composer.phar., (*2)

``` sh $ curl -s http://getcomposer.org/installer | php, (*3)


Run Composer: `php composer.phar require "cyrill/sucre-assertion"` ## Usage -------------------- ```php <?php reqire __DIR__.'/composer/autoload.php'; use Sucre\Assertion; // Assertion::disable(); // if you disable Sucre\Assertion (ie. production) try { Assertion::factory() ->mustString($string) ->mustNull(null) ->assert(); } catch (Exception $e) { // If passed values is not fulfilled. "assert" methods throw Sucre\Assertion\CompositeAssertionException // $e->getFirstException(); // $e->getLastException(); // $e->getExceptions(); echo $e; }

## How to test?

Sucre\Assertion is tested by PHPUnit., (*4)

Run composer composer install --dev. All you have to do is to run phpunit., (*5)

## License

The MIT License, (*6)

The Versions

01/02 2014

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar cyrill

30/11 2013

1.1.0

1.1.0.0

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar cyrill

05/06 2013

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar cyrill