Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 days ago
JSON representation

This library extends PHPUnit with asserting from Monolog logging entries.

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).