PHPackages                             lirik44/phpunit-teamcity-extended - 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. lirik44/phpunit-teamcity-extended

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

lirik44/phpunit-teamcity-extended
=================================

Extended support teamcity testMetadata in php STDOUT output for phpunit

v1.0.3(2y ago)07Apache-2.0PHPPHP ^7.1|^8.0

Since Nov 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lirik44/phpunit-teamcity-extended)[ Packagist](https://packagist.org/packages/lirik44/phpunit-teamcity-extended)[ Docs](https://github.com/lirik44/phpunit-teamcity-extended)[ RSS](/packages/lirik44-phpunit-teamcity-extended/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (3)Used By (0)

PHPUnit Teamcity testMetadata extended support
==============================================

[](#phpunit-teamcity-testmetadata-extended-support)

Extended support for testMetadata in PHPUnit STDOUT.

Added Description Trait for parse @description annotation in tests

Installation
------------

[](#installation)

```
composer require lirik44/phpunit-teamcity-extended

```

Using Descripton trait
----------------------

[](#using-descripton-trait)

### Specify @description annotation before test function

[](#specify-description-annotation-before-test-function)

```
class MyTest extends PHPUnit\Framework\TestCase
{
    /**
     * @description This test check something on page
     */
    public function testSomethingOnPage()
    {
        // test something ...
    }
```

### Use DescriptionTrait in Selenium Helper:

[](#use-descriptiontrait-in-selenium-helper)

```
class SeleniumHelper extends TestCase
{
    protected $testHelper;

    public function setUp():void
    {
        $testName=$this->getName();
        $this->testHelper->setupSeleniumSession($testName);
        date_default_timezone_set( 'Europe/Moscow' );
    }

    use DescriptionTrait;

    public function tearDown():void
    {
        //If test fails get description from @description
        if ($this->hasFailed())
        {
            //Get description text
            $this->description = $this->getTestDescription();
        }
```

Other testMetadata features
---------------------------

[](#other-testmetadata-features)

### Similar as a description you can specify different testMetadata in teadDown() section:

[](#similar-as-a-description-you-can-specify-different-testmetadata-in-teaddown-section)

```
public function tearDown():void
    {
        //Take metaData if test has failed
        if ($this->hasFailed())
        {
            //Get browser URL in the moment of test error occur
            $this->browserLink = $this->webDriver->getCurrentURL();
            //Get browser screenshot in the moment of test error occur
            $this->screenshotErr = $this->testHelper->getErrorScreenshot($testName);
            //Get php_errors.log after test fails
            $this->errLog = $this->testHelper->getPhpErrorLog($testName);
            //Get mono.log after test fails
            $this->monoLog = $this->testHelper->getMonoLog($testName);
            }
        }
```

### Also it is possible to get any information into setUp() section and publish that as a buildTag:

[](#also-it-is-possible-to-get-any-information-into-setup-section-and-publish-that-as-a-buildtag)

```
public function setUp():void
    {
        $testName=$this->getName();
        $this->testHelper->setupSeleniumSession($testName);
        date_default_timezone_set( 'Europe/Moscow' );
        //Get current application git branch
        $this->buildTag = $this->getUsedBranch();
    }
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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 ~25 days

Total

2

Last Release

889d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/083fe47b858f78595e8a7924fdf5ff89603e1ac6753b2abd760a240d6322877c?d=identicon)[lirik44](/maintainers/lirik44)

---

Tags

phpunittestteamcityphp-webdriver

### Embed Badge

![Health badge](/badges/lirik44-phpunit-teamcity-extended/health.svg)

```
[![Health](https://phpackages.com/badges/lirik44-phpunit-teamcity-extended/health.svg)](https://phpackages.com/packages/lirik44-phpunit-teamcity-extended)
```

###  Alternatives

[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[ta-tikoma/phpunit-architecture-test

Methods for testing application architecture

10745.9M13](/packages/ta-tikoma-phpunit-architecture-test)[php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

1718.2M399](/packages/php-mock-php-mock-phpunit)[fr3d/swagger-assertions

Test your API requests and responses against your swagger definition

138850.9k5](/packages/fr3d-swagger-assertions)[elliotchance/concise

Concise is test framework for using plain English and minimal code, built on PHPUnit.

45223.8k4](/packages/elliotchance-concise)[bshaffer/phpunit-retry-annotations

Traits for retrying test methods and classes in PHPUnit

23482.5k2](/packages/bshaffer-phpunit-retry-annotations)

PHPackages © 2026

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