https://github.com/scaleupstack/assert
A tiny wrapper around webmozart/assert that is easily extendable to throw project-specific assertions.
https://github.com/scaleupstack/assert
assert assertions check php php7 validation
Last synced: 10 months ago
JSON representation
A tiny wrapper around webmozart/assert that is easily extendable to throw project-specific assertions.
- Host: GitHub
- URL: https://github.com/scaleupstack/assert
- Owner: scaleupstack
- License: other
- Created: 2019-02-16T20:22:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-06T18:09:01.000Z (over 6 years ago)
- Last Synced: 2025-03-04T16:34:46.090Z (11 months ago)
- Topics: assert, assertions, check, php, php7, validation
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ScaleUpStack/Assert
This library is a tiny wrapper around [webmozart/assert], a library that provides "Assertions to validate method input/output with nice error messages". ScaleUpStack/Assert allows you to extend that library easily to throw a project-specific exception in case an assertion is invalid.
The main reason of this library is, that you can extend it in your project without the need to write a unit test to get full code coverage.
The concept how to extend the base class was inspired by [beberlei/assert].
## Installation
Use [Composer] to install this library:
```
$ composer require scaleupstack/assert
```
## Usage
```php
Thomas Nunninger
[www.scaleupventures.com]
[webmozart/assert]: https://github.com/webmozart/assert
[beberlei/assert]: https://github.com/beberlei/assert
[Composer]: https://getcomposer.org
[issue tracker]: https://github.com/scaleupstack/assert/issues
[Git repository]: https://github.com/scaleupstack/assert
[LICENSE.md]: LICENSE.md
[www.scaleupventures.com]: https://www.scaleupventures.com/