20declare(strict_types=1);
25use PHPUnit\Framework\TestCase;
40 $this->assertCount(3, iterator_to_array($manager->getDirectories(),
false));
47 $this->expectException(\InvalidArgumentException::class);
48 $this->expectExceptionMessage(
'shipping the same files');
60 $this->expectException(\InvalidArgumentException::class);
61 $this->expectExceptionMessage(
'with the same prefix');
73 public function getPrefix():
string
78 public function getPath():
string
80 return 'components/ILIAS/Broken/lang/';
83 public function getSuffix():
string
88 public function isLocal():
bool
93 public function getShippedFileNamePattern():
string
95 return 'no-placeholder';
101 $this->assertSame([$invalid], iterator_to_array($manager->getDirectories(),
false));
106 return new class () implements
Component {
107 public function init(
108 array|\ArrayAccess &$define,
109 array|\ArrayAccess &$implement,
110 array|\ArrayAccess &$use,
111 array|\ArrayAccess &$contribute,
112 array|\ArrayAccess &$seek,
113 array|\ArrayAccess &$provide,
114 array|\ArrayAccess &$pull,
115 array|\ArrayAccess &$internal,
testTheSamePrefixIsReportedAsSuch()
testModulesOfOneComponentShareItsFolder()
testADirectoryWithAnInvalidPatternIsLeftToTheBuild()
The build warns about an invalid pattern, so it must not stop the manager from being built.
testTwoModulesMustNotShipTheSameFiles()
init(array|\ArrayAccess &$define, array|\ArrayAccess &$implement, array|\ArrayAccess &$use, array|\ArrayAccess &$contribute, array|\ArrayAccess &$seek, array|\ArrayAccess &$provide, array|\ArrayAccess &$pull, array|\ArrayAccess &$internal,)
A directory of language files with a path and a prefix for them.
Optional addition to LanguageFileDirectory for shipped .po files not named <prefix>_<lang>....