• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

heimrichhannot / contao-utils-bundle / 38555642341

14 Oct 2026 11:18AM UTC coverage: 84.066% (+4.2%) from 79.825%
38555642341

Pull #108

github

koertho
decouple tests from the stems of wamania/php-stemmer

The tests pinned the exact stems of the external library, so a rule change
there would have failed them although this bundle works correctly.

- SnowballStemmerTest only checks the adapter: locales map to the library's
  stemmer of that language, unsupported languages stay unchanged
- The other tests use a deterministic SuffixTestStemmer
- Configure a schema manager factory for the SQLite test connections

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #108: add search vector field

392 of 407 new or added lines in 16 files covered. (96.31%)

1588 of 1889 relevant lines covered (84.07%)

8.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/SearchVector/LoadedLanguageFiles.php
1
<?php
2

3
namespace HeimrichHannot\UtilsBundle\SearchVector;
4

5
use Contao\System;
6

7
/**
8
 * Reads the names of the language files Contao has loaded so far, which Contao keeps in a protected property only.
9
 *
10
 * @internal
11
 */
12
abstract class LoadedLanguageFiles extends System
13
{
14
    /**
15
     * @return list<string> Empty if the Contao version does not track loaded language files
16
     */
17
    public static function getNames(): array
18
    {
19
        if (!\property_exists(System::class, 'arrLanguageFiles')) {
15 ✔
NEW
20
            return [];
×
21
        }
22

23
        return \array_map(strval(...), \array_keys(System::$arrLanguageFiles));
15 ✔
24
    }
25
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc