Looking to hire Laravel developers? Try LaraJobs

phpunit-laravel-localization maintained by sunaoka

Description
Laravel Localization PHPUnit testing
Author
Last update
2026/06/11 10:31 (dev-develop)
License
Links
Downloads
154

Comments
comments powered by Disqus

Laravel Localization PHPUnit testing

Latest License PHP Test codecov


Features

  • Detect translation keys that are only used in “application” files.
  • Detect translation keys defined only in “lang” files.
  • Test to see if the translation keys for each language match, including the order

Installation

composer require --dev sunaoka/phpunit-laravel-localization

Usage

<?php
// tests/Unit/LocalizationTest.php

declare(strict_types=1);

namespace Tests\Unit;

use Sunaoka\PHPUnit\Laravel\Localization\LocalizationTesting;
use Tests\TestCase;

class LocalizationTest extends TestCase
{
    use LocalizationTesting;
}