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

dg / texy / 43784404972

24 Sep 2026 04:37PM UTC coverage: 97.162% (-0.06%) from 97.217%
43784404972

push

github

dg
compatibility layer for Texy 3

The layer lives in Texy\Compatibility. Configuration code written for Texy 3 keeps running,
applyTypography() included, with a deprecation that names the new place. A setting without
a replacement only warns, and results of parsing that used to live 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, which are names of syntaxes, are converted
to what the phrases mean, both when parsing and when creating the HTML renderer.

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

100 of 111 new or added lines in 4 files covered. (90.09%)

30 existing lines in 7 files now uncovered.

3868 of 3981 relevant lines covered (97.16%)

0.97 hits per line

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

77.78
/src/Compatibility/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\Compatibility;
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 $compatibility,
19
                private string $module,
20
        ) {
21
        }
1 ✔
22

23

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

29

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

35

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

41

42
        /** @param  array<mixed>  $args */
43
        public function __call(string $name, array $args): never
44
        {
45
                $this->compatibility->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