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

dg / texy / 43145091917

24 Sep 2026 04:37PM UTC coverage: 96.951% (-0.03%) from 96.977%
43145091917

push

github

dg
compatibility layer for Texy 3

Configuration code written for Texy 3 keeps running with a deprecation naming the new place, in
applyTypography() too. What has no replacement warns, results of parsing that lived on modules
throw with guidance. Removed methods throw, addReference() of the link and image modules included;
the extension API of Texy 3 is not emulated.
The quote table of Texy 3, pairs of singleQuotes and doubleQuotes, is converted to lists of four,
and the keys of phraseTags of Texy 3, the names of syntaxes, to what the phrases mean, when parsing
and when creating the HTML renderer.

cabae8f0-9dec-45ab-a919-45e6dadc3ad6

97 of 108 new or added lines in 4 files covered. (89.81%)

2 existing lines in 2 files now uncovered.

3847 of 3968 relevant lines covered (96.95%)

0.97 hits per line

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

77.78
/src/Compat/ModuleProxy.php
1
<?php declare(strict_types=1);
2

3
/**
4
 * This file is part of the Texy! (https://texy.deegee.dev)
5
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6
 */
7

8
namespace Texy\Compat;
9

10

11
/**
12
 * Stands in for a module of Texy 3 in $texy->someModule.
13
 * @internal
14
 */
15
final class ModuleProxy
16
{
17
        public function __construct(
1 ✔
18
                private Texy3 $compat,
19
                private string $module,
20
        ) {
21
        }
1 ✔
22

23

24
        public function &__get(string $name): mixed
25
        {
26
                return $this->compat->getModuleProperty($this->module, $name);
1 ✔
27
        }
28

29

30
        public function __set(string $name, mixed $value): void
31
        {
32
                $this->compat->setModuleProperty($this->module, $name, $value);
1 ✔
33
        }
1 ✔
34

35

36
        public function __isset(string $name): bool
37
        {
NEW
38
                return $this->compat->hasModuleProperty($this->module, $name);
×
39
        }
40

41

42
        /** @param  array<mixed>  $args */
43
        public function __call(string $name, array $args): never
44
        {
45
                $this->compat->callModuleMethod($this->module, $name);
1 ✔
NEW
46
        }
×
47
}
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