{"id":15296345,"url":"https://github.com/phoenixrvd/phpunit-assert-log-entry","last_synced_at":"2026-02-25T14:02:25.860Z","repository":{"id":57039112,"uuid":"102899359","full_name":"phoenixrvd/phpunit-assert-log-entry","owner":"phoenixrvd","description":"This library extends PHPUnit with asserting from Monolog logging entries.","archived":false,"fork":false,"pushed_at":"2018-08-12T11:24:18.000Z","size":24,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T11:53:53.339Z","etag":null,"topics":["composer","composer-package","mit-license","monolog","php-library","php71","phpunit","phpunit-6","phpunit-assertions"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phoenixrvd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-08T19:55:10.000Z","updated_at":"2024-02-22T12:49:10.000Z","dependencies_parsed_at":"2022-08-23T23:30:59.070Z","dependency_job_id":null,"html_url":"https://github.com/phoenixrvd/phpunit-assert-log-entry","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoenixrvd%2Fphpunit-assert-log-entry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoenixrvd%2Fphpunit-assert-log-entry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoenixrvd%2Fphpunit-assert-log-entry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoenixrvd%2Fphpunit-assert-log-entry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phoenixrvd","download_url":"https://codeload.github.com/phoenixrvd/phpunit-assert-log-entry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247443687,"owners_count":20939723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","composer-package","mit-license","monolog","php-library","php71","phpunit","phpunit-6","phpunit-assertions"],"created_at":"2024-09-30T18:10:10.337Z","updated_at":"2025-10-23T22:10:39.590Z","avatar_url":"https://github.com/phoenixrvd.png","language":"PHP","readme":"# PHPUnit assert log entry\n\n\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF.svg)](https://php.net/)\n[![Latest Stable Version](https://poser.pugx.org/phoenixrvd/phpunit-assert-log-entry/v/stable.svg)](https://packagist.org/packages/phoenixrvd/phpunit-assert-log-entry)\n[![composer.lock](https://poser.pugx.org/phoenixrvd/phpunit-assert-log-entry/composerlock)](https://packagist.org/packages/phoenixrvd/phpunit-assert-log-entry)\n[![License](https://poser.pugx.org/phoenixrvd/phpunit-assert-log-entry/license)](https://packagist.org/packages/phoenixrvd/phpunit-assert-log-entry)\n\n[![Build Status](https://travis-ci.org/phoenixrvd/phpunit-assert-log-entry.png?branch=master)](https://travis-ci.org/phoenixrvd/phpunit-assert-log-entry)\n[![Code Climate](https://codeclimate.com/github/phoenixrvd/phpunit-assert-log-entry.png)](https://codeclimate.com/github/phoenixrvd/phpunit-assert-log-entry)\n[![StyleCI](https://styleci.io/repos/102899359/shield?branch=master)](https://styleci.io/repos/102899359)\n[![Test Coverage](https://codeclimate.com/github/phoenixrvd/phpunit-assert-log-entry/badges/coverage.svg)](https://codeclimate.com/github/phoenixrvd/phpunit-assert-log-entry/coverage)\n[![Latest Unstable Version](https://poser.pugx.org/phoenixrvd/phpunit-assert-log-entry/v/unstable.svg)](https://packagist.org/packages/phoenixrvd/phpunit-assert-log-entry)\n\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\n- [Installation](#installation)\n- [Example](#example)\n- [Testing](#testing)\n- [Copyright and license](#copyright-and-license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\nThis library extends [PHPUnit](https://github.com/sebastianbergmann/phpunit) with asserting \nfrom [Monolog](https://github.com/Seldaek/monolog) logging entries.\n\n## Installation\n\nInstall the latest version with\n\n```bash\ncomposer require phoenixrvd/phpunit-assert-log-entry\n```\n## Example\n\n```php\n\u003c?php\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass LogAssertionsTest extends TestCase\n{\n    use \\PhoenixRVD\\PHPUnitLogAssertions\\LogAssertions;\n    \n    public function testFoo(){\n        // Get a Monolog instance\n        $logger = new \\Monolog\\Logger(__CLASS__);\n\n        // Register a logger in test case handler\n        self::attachLogger($logger);\n        $logger-\u003edebug('foo');\n        self::assertLogHasDebugRecords();\n        self::assertLogHasDebug('foo');\n    }\n    \n}\n```\n\n## Testing\n\n```bash\ncomposer phpunit_log_assertions:test\n```\n\n## Copyright and license\n\nCode released under the [MIT License](LICENSE). \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphoenixrvd%2Fphpunit-assert-log-entry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphoenixrvd%2Fphpunit-assert-log-entry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphoenixrvd%2Fphpunit-assert-log-entry/lists"}