Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maks3w/psr3messageassertions
Test your log messages are compliant with PSR-3 Logger
https://github.com/maks3w/psr3messageassertions
assertions hacktoberfest logger php psr-3
Last synced: about 2 months ago
JSON representation
Test your log messages are compliant with PSR-3 Logger
- Host: GitHub
- URL: https://github.com/maks3w/psr3messageassertions
- Owner: Maks3w
- License: other
- Created: 2015-04-30T14:35:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-14T10:15:35.000Z (almost 5 years ago)
- Last Synced: 2024-08-16T20:37:32.454Z (4 months ago)
- Topics: assertions, hacktoberfest, logger, php, psr-3
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# PSR-3 Log message assertions
[![Build Status](https://travis-ci.org/Maks3w/Psr3MessageAssertions.svg?branch=master)](https://travis-ci.org/Maks3w/Psr3MessageAssertions)
[![Coverage Status](https://coveralls.io/repos/Maks3w/Psr3MessageAssertions/badge.svg?branch=master)](https://coveralls.io/r/Maks3w/Psr3MessageAssertions?branch=master)Test your log messages are compliant with the [PSR-3 (Logger) specification](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)
## Installing via Composer
You can use [Composer](https://getcomposer.org) .
```bash
composer require fr3d/psr3-message-assertions
```## Usage in PHPUnit
Use [TestLogger.php](src/PhpUnit/TestLogger.php) as the logger dependency.
`TestLogger` will assert each log message is compliant with the PSR-3 Logger standard.
## License
Code licensed under BSD 2 clauses terms & conditions.
See [LICENSE.txt](LICENSE.txt) for more information.