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.0k↓33.3%2[1 PRs](https://github.com/craue/CraueTranslationsTests/pulls)4MITPHPPHP ^7.3|^8

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 1mo 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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

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

853d 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.0k96.8M2.0k](/packages/behat-behat)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[dama/doctrine-test-bundle

Symfony bundle to isolate doctrine database tests and improve test performance

1.2k37.2M144](/packages/dama-doctrine-test-bundle)[liip/functional-test-bundle

This bundles provides additional functional test-cases for Symfony applications

65010.8M86](/packages/liip-functional-test-bundle)[liip/test-fixtures-bundle

This bundles enables efficient loading of Doctrine fixtures in functional test-cases for Symfony applications

1798.3M42](/packages/liip-test-fixtures-bundle)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M510](/packages/spatie-phpunit-snapshot-assertions)

PHPackages © 2026

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