{"id":25990067,"url":"https://github.com/ghostwriter/psr-phpunit-assertions","last_synced_at":"2025-12-31T00:54:14.880Z","repository":{"id":280756187,"uuid":"942788856","full_name":"ghostwriter/psr-phpunit-assertions","owner":"ghostwriter","description":"[WIP] PHPUnit assertions for PSR-compliant components, implemented as reusable traits.","archived":false,"fork":false,"pushed_at":"2025-03-05T06:28:12.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"0.1.x","last_synced_at":"2025-03-05T06:28:38.734Z","etag":null,"topics":["assertions","ghostwriter","php","phpunit","phpunit-assertions","psr","psr-11","psr-13","psr-14","psr-15","psr-16","psr-17","psr-18","psr-20","psr-3","psr-6","psr-7","psr-phpunit-assertions"],"latest_commit_sha":null,"homepage":"https://github.com/ghostwriter/psr-phpunit-assertions","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghostwriter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ghostwriter"]}},"created_at":"2025-03-04T17:15:41.000Z","updated_at":"2025-03-05T06:28:15.000Z","dependencies_parsed_at":"2025-03-05T06:39:07.060Z","dependency_job_id":null,"html_url":"https://github.com/ghostwriter/psr-phpunit-assertions","commit_stats":null,"previous_names":["ghostwriter/psr-phpunit-assertions"],"tags_count":0,"template":false,"template_full_name":"ghostwriter/wip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fpsr-phpunit-assertions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fpsr-phpunit-assertions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fpsr-phpunit-assertions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fpsr-phpunit-assertions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostwriter","download_url":"https://codeload.github.com/ghostwriter/psr-phpunit-assertions/tar.gz/refs/heads/0.1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242032637,"owners_count":20060829,"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":["assertions","ghostwriter","php","phpunit","phpunit-assertions","psr","psr-11","psr-13","psr-14","psr-15","psr-16","psr-17","psr-18","psr-20","psr-3","psr-6","psr-7","psr-phpunit-assertions"],"created_at":"2025-03-05T13:24:24.999Z","updated_at":"2025-12-31T00:54:14.875Z","avatar_url":"https://github.com/ghostwriter.png","language":"PHP","readme":"# Psr Phpunit Assertions\n\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/ghostwriter?label=Sponsor+@ghostwriter/psr-phpunit-assertions\u0026logo=GitHub+Sponsors)](https://github.com/sponsors/ghostwriter)\n[![Automation](https://github.com/ghostwriter/psr-phpunit-assertions/actions/workflows/automation.yml/badge.svg)](https://github.com/ghostwriter/psr-phpunit-assertions/actions/workflows/automation.yml)\n[![Supported PHP Version](https://badgen.net/packagist/php/ghostwriter/psr-phpunit-assertions?color=8892bf)](https://www.php.net/supported-versions)\n[![Downloads](https://badgen.net/packagist/dt/ghostwriter/psr-phpunit-assertions?color=blue)](https://packagist.org/packages/ghostwriter/psr-phpunit-assertions)\n\nPHPUnit assertions for PSR-compliant components, implemented as reusable traits.\n\n\u003e [!WARNING]\n\u003e\n\u003e This project is not finished yet, work in progress.\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require ghostwriter/psr-phpunit-assertions --dev\n```\n\n### Star ⭐️ this repo if you find it useful\n\nYou can also star (🌟) this repo to find it easier later.\n\n## Usage\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\n// use all the traits provided\n\nuse \\Ghostwriter\\PsrPhpunitAssertions\\AssertionsTrait;\n\nfinal class ExampleOneTest extends AbstractTestCase\n{\n    use AssertionsTrait;\n}\n\n// or mix and match the trait you need.\n\nuse \\Ghostwriter\\PsrPhpunitAssertions\\CacheTrait;\nuse \\Ghostwriter\\PsrPhpunitAssertions\\ClockTrait;\nuse \\Ghostwriter\\PsrPhpunitAssertions\\ContainerTrait;\nuse \\Ghostwriter\\PsrPhpunitAssertions\\EventDispatcherTrait;\nuse \\Ghostwriter\\PsrPhpunitAssertions\\HttpTrait;\nuse \\Ghostwriter\\PsrPhpunitAssertions\\LinkTrait;\nuse \\Ghostwriter\\PsrPhpunitAssertions\\LogTrait;\nuse \\Ghostwriter\\PsrPhpunitAssertions\\SimpleCacheTrait;\n\nfinal class ExampleTest extends AbstractTestCase\n{\n    use CacheTrait;\n    use ClockTrait;\n    use ContainerTrait;\n    use EventDispatcherTrait;\n    use HttpTrait;\n    use LinkTrait;\n    use LogTrait;\n    use SimpleCacheTrait;\n}\n```\n\n### Docs\n\nPlease see [docs/README.md](./docs/README.md)\n\n### Credits\n\n- [Nathanael Esayeas](https://github.com/ghostwriter)\n- [PHP-Fig](https://github.com/php-fig)\n- [All Contributors](https://github.com/ghostwriter/psr-phpunit-assertions/contributors)\n\n### Changelog\n\nPlease see [CHANGELOG.md](./CHANGELOG.md) for more information on what has changed recently.\n\n### License\n\nPlease see [LICENSE](./LICENSE) for more information on the license that applies to this project.\n\n### Security\n\nPlease see [SECURITY.md](./SECURITY.md) for more information on security disclosure process.\n","funding_links":["https://github.com/sponsors/ghostwriter"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostwriter%2Fpsr-phpunit-assertions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostwriter%2Fpsr-phpunit-assertions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostwriter%2Fpsr-phpunit-assertions/lists"}