PHPackages                             stechstudio/codeception-laravel-unittest - 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. stechstudio/codeception-laravel-unittest

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

stechstudio/codeception-laravel-unittest
========================================

0.1.0(11y ago)111.2k3[2 issues](https://github.com/stechstudio/codeception-laravel-unittest/issues)[1 PRs](https://github.com/stechstudio/codeception-laravel-unittest/pulls)PHPPHP &gt;=5.4.0

Since Oct 3Pushed 9y ago2 watchersCompare

[ Source](https://github.com/stechstudio/codeception-laravel-unittest)[ Packagist](https://packagist.org/packages/stechstudio/codeception-laravel-unittest)[ RSS](/packages/stechstudio-codeception-laravel-unittest/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

**This package is no longer maintained. Laravel's built-in testing capabilities have almost entirely replaced Codeception for us, especially with the introduction of Laravel Dusk (browser tests) in Laravel 5.4. If you would like to maintain this package, fork it, let me know, and I'll link to your fork for others to reference.**

Unit Test class for Codeception and Laravel 5
=============================================

[](#unit-test-class-for-codeception-and-laravel-5)

This class allows you to write [Codeception](http://codeception.com/) unit tests with all the same goodies (bootstrapping, helpers, facade mocking, etc) that the [default Laravel testing](http://laravel.com/docs/4.2/testing) provides.

**Wait, *unit* tests in Codeception? I thought Codeception was for functional and acceptance testing?**

It is. However it can also run [unit tests](http://codeception.com/docs/06-UnitTests) where it "uses PHPUnit as a backend" and adds a few nice helpers.

**Uh, then why not just PHPUnit with the default Laravel setup?**

If you are writing your functional/acceptance tests in Codeception (and I encourage it!) then it might be really nice to be able to run all your tests at once for end-to-end testing. This could make automated testing / CI a bit easier.

And perhaps you also want to take advantage of both the Laravel and Codeception unit test helpers.

Setup
=====

[](#setup)

First off add the composer dependency:

```
"require-dev": {
    "stechstudio/codeception-laravel-unittest" : "0.1.*"

```

Then of course update composer:

```
composer update

```

Now when writing your Codeception unit tests, extend `STS\Testing\CodeceptionLaravelUnitTest` instead of `\Codeception\TestCase\Test`:

```
use STS\Testing\CodeceptionLaravelUnitTest;

class MyTest extends CodeceptionLaravelUnitTest {

```

That's it! Now you can refer to the [Laravel docs](http://laravel.com/docs/4.2/testing) to see the goodies this provides.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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

Unknown

Total

1

Last Release

4292d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/315be5f111b5501a41b99a0205c9c85915335391168a0ed10316546a1a38bbd8?d=identicon)[jszobody](/maintainers/jszobody)

---

Top Contributors

[![jszobody](https://avatars.githubusercontent.com/u/203749?v=4)](https://github.com/jszobody "jszobody (14 commits)")[![livingos](https://avatars.githubusercontent.com/u/3140786?v=4)](https://github.com/livingos "livingos (1 commits)")

### Embed Badge

![Health badge](/badges/stechstudio-codeception-laravel-unittest/health.svg)

```
[![Health](https://phpackages.com/badges/stechstudio-codeception-laravel-unittest/health.svg)](https://phpackages.com/packages/stechstudio-codeception-laravel-unittest)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

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

14429.2M360](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

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