Add tests for the localization files

This commit is contained in:
Aleksander Machniak 2022-12-01 12:42:11 +01:00
parent 258665932d
commit b3c882e037
16 changed files with 304 additions and 0 deletions

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}

View file

@ -0,0 +1,19 @@
<?php
class LocalizationTest extends PHPUnit\Framework\TestCase
{
/**
* Test all localization files for possible errors
*/
function test_localization()
{
// Any error/warning will fail the
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
$labels = $messages = [];
include $file;
$this->assertTrue(!empty($labels));
}
}
}