PHPackages                             arcus-software/concrete-php-assert - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. arcus-software/concrete-php-assert

ActiveLibrary[Testing &amp; Quality](/categories/testing)

arcus-software/concrete-php-assert
==================================

A concrete class that extends PHPUnit'Assert class.

v0.0.3(8y ago)017Apache-2.0PHP

Since Apr 26Pushed 8y agoCompare

[ Source](https://github.com/john-arcus/concrete-php-assert)[ Packagist](https://packagist.org/packages/arcus-software/concrete-php-assert)[ RSS](/packages/arcus-software-concrete-php-assert/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

concrete-php-assert
===================

[](#concrete-php-assert)

A concrete class that extends PHPUnit\\Framework\\Assert so that it can be instantiated as a class and used as an object.

See my [User Story where I first used this package in a project](https://github.com/john-arcus/xandria-demo/issues/2#issue-318208017).

Do you really need it?
----------------------

[](#do-you-really-need-it)

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

If you just want a short name for that class you could `use` the short version of the name.

See: [Using namespaces: Aliasing/Importing](http://php.net/manual/en/language.namespaces.importing.php)

```
use PHPUnit\Framework\Assert;
```

Is the same as:

```
use PHPUnit\Framework\Assert as Assert;
```

So assertions could be invoked in just a few characters:

```
Assert::assertTrue($foo);
```

Install via Composer
--------------------

[](#install-via-composer)

You can add `concrete-php-assert` as a local, per-project, development-time dependency to your project using Composer:

```
$ composer require --dev arcus-software/concrete-php-assert
```

Using ConcreteAssert in your own project
----------------------------------------

[](#using-concreteassert-in-your-own-project)

See actual usages of this code within a Behat FeatureContext.php script.

See the `FeatureContext` class in this project at:

```
features/bootstrap/FeatureContext.php
```

Developing this project
=======================

[](#developing-this-project)

Clone the repo
--------------

[](#clone-the-repo)

[Clone this repository](https://help.github.com/articles/cloning-a-repository/) from [its home on github](https://github.com/john-arcus/concrete-php-assert/).

Then, assuming that you have installed [Composer](https://getcomposer.org/), run:

```
$ composer update
```

We 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:

```
$ vendor/bin/behat
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

2988d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33609519?v=4)[Arcus](/maintainers/arcus)[@arcus](https://github.com/arcus)

---

Top Contributors

[![john-arcus](https://avatars.githubusercontent.com/u/32770045?v=4)](https://github.com/john-arcus "john-arcus (12 commits)")

---

Tags

phpunitphpunit-assertions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/arcus-software-concrete-php-assert/health.svg)

```
[![Health](https://phpackages.com/badges/arcus-software-concrete-php-assert/health.svg)](https://phpackages.com/packages/arcus-software-concrete-php-assert)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M358](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
