PHPackages                             craue/translations-tests - 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. craue/translations-tests

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

craue/translations-tests
========================

Common code for testing translations in your Symfony project.

1.2.1(2y ago)04.3k↓75.3%2[1 PRs](https://github.com/craue/CraueTranslationsTests/pulls)4MITPHPPHP ^7.3|^8CI failing

Since May 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/craue/CraueTranslationsTests)[ Packagist](https://packagist.org/packages/craue/translations-tests)[ Docs](https://github.com/craue/CraueTranslationsTests)[ RSS](/packages/craue-translations-tests/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (8)Versions (5)Used By (4)

Information
===========

[](#information)

[![Build Status](https://camo.githubusercontent.com/4850d90c019a86d37364283570338462d7b65f35dad1d07e471d988fd2e3a010/68747470733a2f2f6170702e7472617669732d63692e636f6d2f63726175652f43726175655472616e736c6174696f6e7354657374732e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/craue/CraueTranslationsTests)

This repository contains just some common code for testing translations in your Symfony project.

Installation
============

[](#installation)

Let Composer download and install the bundle by running

```
composer require --dev craue/translations-tests
```

in a shell.

Usage
=====

[](#usage)

```
// src/app/Tests/TranslationsTest.php
namespace Application\Tests;

use Craue\TranslationsTests\YamlTranslationsTest;

/**
 * @group unit
 */
class TranslationsTest extends YamlTranslationsTest {

	// only add this method to override the default implementation returning "en"
	protected function defineDefaultLocale() : string {
		return 'de';
	}

	// specify all locations with translation files
	protected function defineTranslationFiles() : array {
		return array_merge(
			glob(__DIR__ . '/../../Resources/translations/*.yml'),
			glob(__DIR__ . '/../../Resources/*Bundle/translations/*.yml'),
			glob(__DIR__ . '/../../../src/*/*Bundle/Resources/translations/*.yml')
		);
	}

}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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 ~447 days

Total

4

Last Release

905d ago

PHP version history (2 changes)1.0.0PHP ~7.0

1.1.0PHP ^7.3|^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1634a0daf607752890692d69453ca9137e1021536d6f2a49526175a03409202?d=identicon)[craue](/maintainers/craue)

---

Top Contributors

[![craue](https://avatars.githubusercontent.com/u/800119?v=4)](https://github.com/craue "craue (19 commits)")[![franmomu](https://avatars.githubusercontent.com/u/720690?v=4)](https://github.com/franmomu "franmomu (1 commits)")

---

Tags

testingsymfonytranslations

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/craue-translations-tests/health.svg)

```
[![Health](https://phpackages.com/badges/craue-translations-tests/health.svg)](https://phpackages.com/packages/craue-translations-tests)
```

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k101.8M2.2k](/packages/behat-behat)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k42.5M40.9k](/packages/orchestra-testbench)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)

PHPackages © 2026

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