Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phoenixrvd/phpunit-assert-log-entry
This library extends PHPUnit with asserting from Monolog logging entries.
https://github.com/phoenixrvd/phpunit-assert-log-entry
composer composer-package mit-license monolog php-library php71 phpunit phpunit-6 phpunit-assertions
Last synced: 15 days ago
JSON representation
This library extends PHPUnit with asserting from Monolog logging entries.
- Host: GitHub
- URL: https://github.com/phoenixrvd/phpunit-assert-log-entry
- Owner: phoenixrvd
- License: mit
- Created: 2017-09-08T19:55:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-12T11:24:18.000Z (over 6 years ago)
- Last Synced: 2024-11-18T09:54:14.822Z (about 2 months ago)
- Topics: composer, composer-package, mit-license, monolog, php-library, php71, phpunit, phpunit-6, phpunit-assertions
- Language: PHP
- Size: 23.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHPUnit assert log entry
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF.svg)](https://php.net/)
[![Latest Stable Version](https://poser.pugx.org/phoenixrvd/phpunit-assert-log-entry/v/stable.svg)](https://packagist.org/packages/phoenixrvd/phpunit-assert-log-entry)
[![composer.lock](https://poser.pugx.org/phoenixrvd/phpunit-assert-log-entry/composerlock)](https://packagist.org/packages/phoenixrvd/phpunit-assert-log-entry)
[![License](https://poser.pugx.org/phoenixrvd/phpunit-assert-log-entry/license)](https://packagist.org/packages/phoenixrvd/phpunit-assert-log-entry)[![Build Status](https://travis-ci.org/phoenixrvd/phpunit-assert-log-entry.png?branch=master)](https://travis-ci.org/phoenixrvd/phpunit-assert-log-entry)
[![Code Climate](https://codeclimate.com/github/phoenixrvd/phpunit-assert-log-entry.png)](https://codeclimate.com/github/phoenixrvd/phpunit-assert-log-entry)
[![StyleCI](https://styleci.io/repos/102899359/shield?branch=master)](https://styleci.io/repos/102899359)
[![Test Coverage](https://codeclimate.com/github/phoenixrvd/phpunit-assert-log-entry/badges/coverage.svg)](https://codeclimate.com/github/phoenixrvd/phpunit-assert-log-entry/coverage)
[![Latest Unstable Version](https://poser.pugx.org/phoenixrvd/phpunit-assert-log-entry/v/unstable.svg)](https://packagist.org/packages/phoenixrvd/phpunit-assert-log-entry)- [Installation](#installation)
- [Example](#example)
- [Testing](#testing)
- [Copyright and license](#copyright-and-license)This library extends [PHPUnit](https://github.com/sebastianbergmann/phpunit) with asserting
from [Monolog](https://github.com/Seldaek/monolog) logging entries.## Installation
Install the latest version with
```bash
composer require phoenixrvd/phpunit-assert-log-entry
```
## Example```php
debug('foo');
self::assertLogHasDebugRecords();
self::assertLogHasDebug('foo');
}
}
```## Testing
```bash
composer phpunit_log_assertions:test
```## Copyright and license
Code released under the [MIT License](LICENSE).