{"id":25518279,"url":"https://github.com/john-arcus/concrete-php-assert","last_synced_at":"2026-04-17T06:31:23.814Z","repository":{"id":62486804,"uuid":"131183036","full_name":"john-arcus/concrete-php-assert","owner":"john-arcus","description":"A concrete class that extends PHPUnit\\Framework\\Assert so that it can be instantiated as a class and used as an object.","archived":false,"fork":false,"pushed_at":"2018-04-26T22:09:51.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-26T02:03:43.922Z","etag":null,"topics":["phpunit","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/john-arcus.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":"2018-04-26T16:30:58.000Z","updated_at":"2018-04-26T22:09:52.000Z","dependencies_parsed_at":"2022-11-02T10:02:31.381Z","dependency_job_id":null,"html_url":"https://github.com/john-arcus/concrete-php-assert","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/john-arcus/concrete-php-assert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-arcus%2Fconcrete-php-assert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-arcus%2Fconcrete-php-assert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-arcus%2Fconcrete-php-assert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-arcus%2Fconcrete-php-assert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/john-arcus","download_url":"https://codeload.github.com/john-arcus/concrete-php-assert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-arcus%2Fconcrete-php-assert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31918479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["phpunit","phpunit-assertions"],"created_at":"2025-02-19T16:24:56.336Z","updated_at":"2026-04-17T06:31:23.257Z","avatar_url":"https://github.com/john-arcus.png","language":"PHP","readme":"# concrete-php-assert\nA concrete class that extends PHPUnit\\Framework\\Assert so that it can be instantiated as a class and used as an object.\n\nSee my [User Story where I first used this package in a project](https://github.com/john-arcus/xandria-demo/issues/2#issue-318208017).\n\n## Do you really need it?\n\nI started this project to make typing assertion invocations easier. As I implemented my idea I started to doubt if the project was worthwhile. So, bear in mind. This project might be pointless and you might be better of not using it. Meanwhile, I had started so I had to finish it.\n\nIf you just want a short name for that class you could `use` the short version of the name.\n\nSee: [Using namespaces: Aliasing/Importing](http://php.net/manual/en/language.namespaces.importing.php)\n\n```php\nuse PHPUnit\\Framework\\Assert;\n```\n\nIs the same as:\n\n```php\nuse PHPUnit\\Framework\\Assert as Assert;\n```\n\nSo assertions could be invoked in just a few characters:\n\n```php\nAssert::assertTrue($foo);\n```\n\n\n## Install via Composer\n\nYou can add `concrete-php-assert` as a local, per-project, development-time dependency to your project using Composer:\n\n```bash\n$ composer require --dev arcus-software/concrete-php-assert\n\n```\n\n## Using ConcreteAssert in your own project\n\nSee actual usages of this code within a Behat FeatureContext.php script.\n\nSee the `FeatureContext` class in this project at: \n\n```bash\nfeatures/bootstrap/FeatureContext.php\n```\n\n\n\n# Developing this project\n\n## Clone the repo\n\n[Clone this repository](https://help.github.com/articles/cloning-a-repository/) from [its home on github](https://github.com/john-arcus/concrete-php-assert/).\n\nThen, assuming that you have installed [Composer](https://getcomposer.org/), run:\n\n```bash\n$ composer update\n```\n\nWe use [Behat](http://behat.org/) to test the basic behaviour of instantiating a concrete instance of `PHPUnit\\Framework\\Assert`. Run Behat tests from this project's root folder with the following command:\n\n```bash\n$ vendor/bin/behat\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohn-arcus%2Fconcrete-php-assert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohn-arcus%2Fconcrete-php-assert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohn-arcus%2Fconcrete-php-assert/lists"}