PHPackages                             oliverklee/dungeon-of-bugs - 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. oliverklee/dungeon-of-bugs

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

oliverklee/dungeon-of-bugs
==========================

A console-based dungeon crawler game which I use in my TDD workshops.

101[9 issues](https://github.com/oliverklee-de/dungeon-of-bugs/issues)PHPCI passing

Since Apr 6Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/oliverklee-de/dungeon-of-bugs)[ Packagist](https://packagist.org/packages/oliverklee/dungeon-of-bugs)[ RSS](/packages/oliverklee-dungeon-of-bugs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (9)Used By (0)

Dungeon of Bugs
===============

[](#dungeon-of-bugs)

This project is a dungeon crawler game using PHP and the Symfony console.

It also is an exercise for my workshops on test-driven development (PHP).

Requirements
------------

[](#requirements)

You'll need one of these:

- local PHP 8.3+ and Composer 2
- Docker and [DDEV](https://github.com/ddev/ddev)

Running the game
----------------

[](#running-the-game)

With local PHP:

```
bin/dungeon-of-bugs
```

With DDEV:

```
ddev exec dungeon-of-bugs
```

Running the PHPUnit tests
-------------------------

[](#running-the-phpunit-tests)

### On the command line

[](#on-the-command-line)

#### Running all tests

[](#running-all-tests)

DescriptionCommandComposer script with local PHP`composer check:tests:all`direct PHPUnit call with local PHP`vendor/bin/phpunit --testsuite all`Composer script with DDEV`ddev composer check:tests:all`direct PHPUnit call with DDEV`ddev exec phpunit --testsuite all`#### Running only the unit tests

[](#running-only-the-unit-tests)

DescriptionCommandComposer script with local PHP`composer check:tests:unit`direct PHPUnit call with local PHP`vendor/bin/phpunit --testsuite unit`Composer script with DDEV`ddev composer check:tests:unit`direct PHPUnit call with DDEV`ddev exec phpunit --testsuite unit`#### Running only the functional tests

[](#running-only-the-functional-tests)

DescriptionCommandComposer script with local PHP`composer check:tests:functional`direct PHPUnit call with local PHP`vendor/bin/phpunit --testsuite functional`Composer script with DDEV`ddev composer check:tests:functional`direct PHPUnit call with DDEV`ddev exec phpunit --testsuite functional`#### Running a single testcase

[](#running-a-single-testcase)

This example is for running the testcase

DescriptionCommanddirect PHPUnit call with local PHP`vendor/bin/phpunit tests/Unit/PlaceholderTest.php`direct PHPUnit call with DDEV`ddev exec phpunit tests/Unit/PlaceholderTest.php`### In PHPStorm

[](#in-phpstorm)

First, you need to configure the PHP interpreter in PHPStorm:

- [local interpreter](https://www.jetbrains.com/help/phpstorm/configuring-local-interpreter.html)
- [remote interpreter with DDEV](https://ddev.readthedocs.io/en/latest/users/install/phpstorm/)

After this, configure PHPUnit:

1. enter the PhpStorm settings
2. PHP &gt; Test Frameworks
3. add a new PHPUnit configuration
4. in "PHPUnit library", select "Use Composer autoloader" and set `vendor/autoload.php` as path
5. in "Test Runner", select "Default configuration file" and set `phpunit.xml` as path to script

Now you can right-click on a testcase or a directory and select "Run".

Credits
-------

[](#credits)

Part of the code has been copied from the Snake Console game by @dbu.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance41

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cc98eb6580d4532340e818ea893009da65365b7f3525f518d143732e838735a?d=identicon)[oliverklee](/maintainers/oliverklee)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (419 commits)")[![oliverklee](https://avatars.githubusercontent.com/u/765746?v=4)](https://github.com/oliverklee "oliverklee (63 commits)")[![AnReiter](https://avatars.githubusercontent.com/u/234920694?v=4)](https://github.com/AnReiter "AnReiter (12 commits)")

---

Tags

dungeon-crawler-gamephpunittddtdd-kata

### Embed Badge

![Health badge](/badges/oliverklee-dungeon-of-bugs/health.svg)

```
[![Health](https://phpackages.com/badges/oliverklee-dungeon-of-bugs/health.svg)](https://phpackages.com/packages/oliverklee-dungeon-of-bugs)
```

###  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)
