This commit is contained in:
Dennis Eichhorn 2022-09-30 16:29:51 +02:00
parent 634cc3d505
commit 328e9c547e
4 changed files with 6523 additions and 6305 deletions

View File

@ -293,7 +293,7 @@ final class StringUtils
// @todo: this should not be necessary // @todo: this should not be necessary
return \str_replace( return \str_replace(
['</del></del>', '</ins></ins>', '<ins></ins>', '<del></del>', '</ins><ins>', '</del><del>', '</ins> <del>', '</del> <ins>'], ['</del></del>', '</ins></ins>', '<ins></ins>', '<del></del>', '</ins><ins>', '</del><del>', '</ins> <del>', '</del> <ins>'],
['', '', '', '', '', '', '</ins><del>', '</del><ins>'], ['</del>', '</ins>', '', '', '', '', '</ins><del>', '</del><ins>'],
$result $result
); );
} }

View File

@ -33,9 +33,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -69,9 +69,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -110,9 +110,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -140,9 +140,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -168,9 +168,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -196,9 +196,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -227,9 +227,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -256,9 +256,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -284,9 +284,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -313,9 +313,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -346,9 +346,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -379,9 +379,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }
@ -443,9 +443,9 @@ trait MailHandlerSmtpTrait
$smtp = new Smtp(); $smtp = new Smtp();
$this->handler->smtp = $smtp; $this->handler->smtp = $smtp;
if ($this->handler->mailerTool !== '' if (($this->handler->mailerTool !== ''
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]) && !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions)) || (!$this->handler->smtpConnect($this->handler->smtpOptions))
) { ) {
self::markTestSkipped(); self::markTestSkipped();
} }

View File

@ -48,7 +48,7 @@ final class InstallerAbstractTest extends \PHPUnit\Framework\TestCase
*/ */
public function testInvalidModuleInstall() : void public function testInvalidModuleInstall() : void
{ {
$this->expectException(\UnexpectedValueException::class); $this->expectException(\Error::class);
$app = new class() extends ApplicationAbstract {}; $app = new class() extends ApplicationAbstract {};
$app->dbPool = $GLOBALS['dbpool']; $app->dbPool = $GLOBALS['dbpool'];

File diff suppressed because it is too large Load Diff