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 5d 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 32% 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

2942d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2d1a47f818ab838fde5bcacf73ed2acc390ae60133f63f1db2b613bab02104b?d=identicon)[arcus](/maintainers/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

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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