diff --git a/Account/Account.php b/Account/Account.php
index 0ca2c57ca..9c1cdb35d 100644
--- a/Account/Account.php
+++ b/Account/Account.php
@@ -1,6 +1,6 @@
path) . ' '
+ . ' '
. $cmd;
} else {
$cmd = \escapeshellarg(self::$bin)
- . ' -C ' . \escapeshellarg($this->path) . ' '
+ . ' '
. $cmd;
}
@@ -84,7 +84,7 @@ final class TesseractOcr
2 => ['pipe', 'w'],
];
- $resource = \proc_open($cmd, $desc, $pipes, $this->path, null);
+ $resource = \proc_open($cmd, $desc, $pipes, null, null);
if ($resource === false) {
throw new \Exception();
@@ -170,15 +170,17 @@ final class TesseractOcr
$this->run(
$image . ' '
. ($temp = \tempnam(\sys_get_temp_dir(), 'ocr_'))
- . '--psm ' . $psm . ' '
- . '--oem ' . $oem . ' '
- . '-l ' . \implode('+', $languages)
+ . ' --psm ' . $psm
+ . ' --oem ' . $oem
+ . ' -l ' . \implode('+', $languages)
);
- $parsed = \file_get_contents($temp);
+ $parsed = \file_get_contents($temp . '.txt');
+
+ // @todo: auto flip image if x% of text are garbage words?
\unlink($temp);
- return $parsed;
+ return \trim($parsed);
}
}
diff --git a/Algorithm/Clustering/Kmeans.php b/Algorithm/Clustering/Kmeans.php
index b5322afcb..9fcd3b42b 100644
--- a/Algorithm/Clustering/Kmeans.php
+++ b/Algorithm/Clustering/Kmeans.php
@@ -1,6 +1,6 @@
db->con->prepare($query->toSql());
+ $sth = $this->db->con->prepare($a = $query->toSql());
if ($sth !== false) {
$sth->execute();
$results = $sth->fetchAll(\PDO::FETCH_ASSOC);
diff --git a/DataStorage/Database/Mapper/UpdateMapper.php b/DataStorage/Database/Mapper/UpdateMapper.php
index 922842d2d..5c595260f 100644
--- a/DataStorage/Database/Mapper/UpdateMapper.php
+++ b/DataStorage/Database/Mapper/UpdateMapper.php
@@ -1,6 +1,6 @@
toSql(), ';') . ')';
}
- if (isset($element['value'])) {
+ if (isset($element['value']) && (!empty($element['value']) || !\is_array($element['value']))) {
$expression .= ' ' . \strtoupper($element['operator']) . ' ' . $this->compileValue($query, $element['value']);
} elseif ($element['value'] === null && !($element['column'] instanceof Builder)) {
$operator = $element['operator'] === '=' ? 'IS' : 'IS NOT';
diff --git a/DataStorage/Database/Query/Grammar/GrammarInterface.php b/DataStorage/Database/Query/Grammar/GrammarInterface.php
old mode 100644
new mode 100755
index 7aab44589..0ff2cff14
--- a/DataStorage/Database/Query/Grammar/GrammarInterface.php
+++ b/DataStorage/Database/Query/Grammar/GrammarInterface.php
@@ -1,6 +1,6 @@
= 0; --$i) {
+ for ($j = $dim[1] - 1; $j >= 0; --$j) {
+ $newPixel = 0;
+
+ for ($ki = $kDim[0] - 1; $ki >= 0; --$ki) {
+ for ($kj = $kDim[1] - 1; $kj >= 0; --$kj) {
+ $newPixel += $kernel[$ki][$kj] * \imagecolorat($im,
+ \min(\max($i + $ki - $kWidthRadius, 0), $dim[0] - 1),
+ \min(\max($j + $kj - $kHeightRadius, 0), $dim[1] - 1)
+ );
+ }
+ }
+
+ \imagesetpixel($im, $i, $j, (int) $newPixel);
+ }
+ }
+ }
+
+ if (\strripos($outPath, 'png') !== false) {
+ \imagepng($im, $outPath);
+ } elseif (\strripos($outPath, 'jpg') !== false || \strripos($outPath, 'jpeg') !== false) {
+ \imagejpeg($im, $outPath);
+ } else {
+ \imagegif($im, $outPath);
+ }
+
+ \imagedestroy($im);
+ }
+}
diff --git a/Image/Skew.php b/Image/Skew.php
new file mode 100644
index 000000000..7b9b33dd6
--- /dev/null
+++ b/Image/Skew.php
@@ -0,0 +1,168 @@
+ $avg ? $hist[$j] : 0;
+ }
+
+ $score = \array_sum($hist);
+ if ($bestScore < $score) {
+ $bestScore = $score;
+ $bestDegree = $i;
+ }
+ }
+
+ $im = \imagerotate($im, $bestDegree, 1);
+
+ // https://stackoverflow.com/questions/29981083/rotating-a-bit-matrix
+
+ if (\strripos($outPath, 'png') !== false) {
+ \imagepng($im, $outPath);
+ } elseif (\strripos($outPath, 'jpg') !== false || \strripos($outPath, 'jpeg') !== false) {
+ \imagejpeg($im, $outPath);
+ } else {
+ \imagegif($im, $outPath);
+ }
+
+ \imagedestroy($im);
+ }
+
+ public static function rotatePixelMatrix(array $pixel, array $dim, int $deg) : array
+ {
+ $rad = \deg2rad($deg);
+
+ $sin = \sin(-$rad);
+ $cos = \cos(-$rad);
+
+ $rotated = [[]];
+
+ for ($i = 0; $i < $dim[0]; ++$i) {
+ $cY = $i - $dim[1] / 2.0; // center
+
+ for ($j = 0; $j < $dim[1]; ++$j) {
+ $cX = $j - $dim[0] / 2.0; // center
+
+ $x = $cos * $cX + $sin * $cY + $dim[0] / 2.0;
+ $y = -$sin * $cX + $cos * $cY + $dim[1] / 2.0;
+
+ $rotated[$i][$j] = self::getNearestValue($pixel, $dim, $x, $y);
+ }
+ }
+
+ return $rotated;
+ }
+
+ private static function getNearestValue(array $pixel, array $dim, float $x, float $y) : int
+ {
+ $xLow = \min((int) $x, $dim[0] - 1);
+ $xHigh = \min((int) \ceil($x), $dim[0] - 1);
+
+ $yLow = \min((int) $y, $dim[1] - 1);
+ $yHigh = \min((int) \ceil($y), $dim[1] - 1);
+
+ $points = [
+ [$xLow, $yLow],
+ [$xLow, $yHigh],
+ [$xHigh, $yLow],
+ [$xHigh, $yHigh],
+ ];
+
+ $minDistance = \PHP_FLOAT_MAX;
+ $minValue = 0;
+
+ foreach ($points as $point) {
+ $distance = ($point[0] - $x) * ($point[0] - $x) + ($point[1] - $y) * ($point[1] - $y);
+
+ if ($distance < $minDistance) {
+ $minDistance = $distance;
+
+ $minValue = $point[0] >= 0 && $point[0] < $dim[0] && $point[1] >= 0 && $point[1] < $dim[1]
+ ? $pixel[$point[1]][$point[0]]
+ : 0;
+ }
+ }
+
+ return $minValue;
+ }
+}
diff --git a/Image/Thresholding.php b/Image/Thresholding.php
index 3c15ae1aa..ce30c16e0 100644
--- a/Image/Thresholding.php
+++ b/Image/Thresholding.php
@@ -1,6 +1,6 @@
> 16) & 0xFF;
- $sG = ($rgb >> 8) & 0xFF;
- $sB = $rgb & 0xFF;
-
- $vR = $sR / 255;
- $vG = $sG / 255;
- $vB = $sB / 255;
-
- $lR = $vR <= 0.04045 ? $vR / 12.92 : \pow((($vR + 0.055) / 1.055), 2.4);
- $lG = $vG <= 0.04045 ? $vG / 12.92 : \pow((($vG + 0.055) / 1.055), 2.4);
- $lB = $vB <= 0.04045 ? $vB / 12.92 : \pow((($vB + 0.055) / 1.055), 2.4);
-
- $y = 0.2126 * $lR + 0.7152 * $lG + 0.0722 * $lB;
- $lStar = $y <= 216 / 24389 ? $y * 24389 / 27 : \pow($y,(1 / 3)) * 116 - 16;
-
- return $lStar / 100;
- }
}
diff --git a/LICENSE.txt b/LICENSE.txt
old mode 100644
new mode 100755
diff --git a/Localization/Defaults/City.php b/Localization/Defaults/City.php
old mode 100644
new mode 100755
index 751a0e630..a60cc94e3
--- a/Localization/Defaults/City.php
+++ b/Localization/Defaults/City.php
@@ -1,6 +1,6 @@
diff --git a/Math/Matrix/QRDecomposition.php b/Math/Matrix/QRDecomposition.php
old mode 100644
new mode 100755
index 118540ef1..afc8c8dad
--- a/Math/Matrix/QRDecomposition.php
+++ b/Math/Matrix/QRDecomposition.php
@@ -1,6 +1,6 @@
author) ? '' : '')
. (!empty($this->description) ? '' : '')
. (!empty($this->charset) ? '' : '')
- . ''
+ . ''
. $this->renderProperty()
. $this->renderItemprop()
. $this->renderName();
diff --git a/Model/Message/Dom.php b/Model/Message/Dom.php
index b317707a7..577ef5bed 100644
--- a/Model/Message/Dom.php
+++ b/Model/Message/Dom.php
@@ -1,6 +1,6 @@

-The phpOMS framework is primarily developed for the Orange Management application which is a modular web application for small to mid sized companies that need CRM, ERP, Intranet and/or CMS functionalities and much more. The framework is also used in some other tools and websites which compliment the Orange Management web application and provides the necessary php functionality.
+The phpOMS framework is primarily developed for the Karaka application which is a modular web application for small to mid sized companies that need CRM, ERP, Intranet and/or CMS functionalities and much more. The framework is also used in some other tools and websites which compliment the Karaka web application and provides the necessary php functionality.
With Orange-Management you have one partner who can provide all the tools and software solutions you are used to at fair and reasonable prices even for small organizations and companies/startups. Our solutions can be used independently from each other or fully integrated with other solutions we provide. By choosing Orange-Management as your partner you'll be able to adjust your software based on the changes in your requirements without worrying about integration and workflow optimization.
## Table of content
-- [Orange-Management](#orange-management)
+- [Orange-Management](#karaka)
- [Table of content](#table-of-content)
- [Installation](#installation)
- [Requirements](#requirements)
@@ -41,23 +41,23 @@ Please note if you are only interested in using the framework without the web ap
After installing the requirements and configuring the web server for the correct path navigate to https://your_url.com/Install and follow the installation process. Afterwards you will be redirected to the installed backend.
-For more detailed information please checkout the [Installation Guide](https://orange-management.org/dev/guide?page=setup/installation).
+For more detailed information please checkout the [Installation Guide](https://karaka.app/dev/guide?page=setup/installation).
#### Developer
-https://github.com/Orange-Management/Developer-Guide/blob/develop/general/setup.md
+https://github.comkaraka-management/Developer-Guide/blob/develop/general/setup.md
## Philosophy
We believe software should support a business in it's daily tasks and growth in a very efficient way without frustration. In order to achieve this we constantly take feedback from our customers and expand and improve our software solutions.
-Since we believe in our software and transparent business model you can live test parts of our application and it's modules in our demo application at https://orange-management.app (user: admin, pass: orange) without any registration or inquiry. This can be done even during the development phase.
+Since we believe in our software and transparent business model you can live test parts of our application and it's modules in our demo application at https://karaka.app (user: admin, pass: orange) without any registration or inquiry. This can be done even during the development phase.
## Development Status
-Currently Orange Management is still developing the first Alpha version. As soon as we have a running Beta version we are allowing external testers to use our software and a selected amount of inhouse developed modules. The **phpOMS** framework is the component which is developed the furthest and already provides a large amount of functionality which is required by the whole project.
+Currently Karaka is still developing the first Alpha version. As soon as we have a running Beta version we are allowing external testers to use our software and a selected amount of inhouse developed modules. The **phpOMS** framework is the component which is developed the furthest and already provides a large amount of functionality which is required by the whole project.
-General updates can be found in our info section at https://orange-management.org/info and developer updates can be found in our developer section at https://orange-management.org/dev. In our developer section you can also check out the automatically generated reports such as code coverage, code style, static analysis etc. as well as our code style guide lines and developer documentation.
+General updates can be found in our info section at https://karaka.app/info and developer updates can be found in our developer section at https://karaka.app/dev. In our developer section you can also check out the automatically generated reports such as code coverage, code style, static analysis etc. as well as our code style guide lines and developer documentation.

@@ -105,12 +105,12 @@ Orange-Management has a very open culture and we always welcome new people who s
* Artist and/or Frontend
* DevOps
-Check out https://orange-management.org/career and our developer section https://orange-management.org/dev for more information.
+Check out https://karaka.app/career and our developer section https://karaka.app/dev for more information.
## Misc
* Languages: PHP, JS, HTML, CSS
-* Website: [https://orange-management.org](https://orange-management.org)
-* Demo: [https://orange-management.app](https://orange-management.app) (user: admin, pass: orange)
-* Dev: [https://orange-management.org/dev](https://orange-management.org/dev)
-* Contact: dennis@orange-management.email
+* Website: [https://karaka.app](https://karaka.app)
+* Demo: [https://karaka.app](https://karaka.app) (user: admin, pass: orange)
+* Dev: [https://karaka.app/dev](https://karaka.app/dev)
+* Contact: dennis@karaka.email
diff --git a/Router/RouteVerb.php b/Router/RouteVerb.php
old mode 100644
new mode 100755
index 9a49d416b..b4aced61a
--- a/Router/RouteVerb.php
+++ b/Router/RouteVerb.php
@@ -1,6 +1,6 @@
diff --git a/System/File/ExtensionType.php b/System/File/ExtensionType.php
old mode 100644
new mode 100755
index 6d6ba6517..85d7a5b39
--- a/System/File/ExtensionType.php
+++ b/System/File/ExtensionType.php
@@ -1,6 +1,6 @@
path) . ' '
diff --git a/Utils/Git/Tag.php b/Utils/Git/Tag.php
old mode 100644
new mode 100755
index dce91b909..e24251b6c
--- a/Utils/Git/Tag.php
+++ b/Utils/Git/Tag.php
@@ -1,6 +1,6 @@
> 16) & 0xFF;
+ $sG = ($rgb >> 8) & 0xFF;
+ $sB = $rgb & 0xFF;
+
+ return self::lightnessFromRgb($sR, $sG, $sB);
+ }
+
+ public static function lightnessFromRgb(int $r, int $g, int $b) : float
+ {
+ $vR = $r / 255;
+ $vG = $g / 255;
+ $vB = $b / 255;
+
+ $lR = $vR <= 0.04045 ? $vR / 12.92 : \pow((($vR + 0.055) / 1.055), 2.4);
+ $lG = $vG <= 0.04045 ? $vG / 12.92 : \pow((($vG + 0.055) / 1.055), 2.4);
+ $lB = $vB <= 0.04045 ? $vB / 12.92 : \pow((($vB + 0.055) / 1.055), 2.4);
+
+ $y = 0.2126 * $lR + 0.7152 * $lG + 0.0722 * $lB;
+ $lStar = $y <= 216 / 24389 ? $y * 24389 / 27 : \pow($y,(1 / 3)) * 116 - 16;
+
+ return $lStar / 100;
+ }
}
diff --git a/Utils/MbStringUtils.php b/Utils/MbStringUtils.php
index e3c05db0d..8be2746b6 100644
--- a/Utils/MbStringUtils.php
+++ b/Utils/MbStringUtils.php
@@ -1,6 +1,6 @@
= 32 || $b < -32) {
+ $m = (int) ($b / 32);
+ $b = $b - ($m * 32);
}
- return ($a >> $b) & ~(1 << (8 * \PHP_INT_SIZE - 1) >> ($b - 1));
+ if ($b < 0) {
+ $b = 32 + $b;
+ }
+
+ if ($b == 0) {
+ return (($a >> 1) & 0x7fffffff) * 2 + (($a >> $b) & 1);
+ }
+
+ if ($a < 0) {
+ $a = ($a >> 1);
+ $a &= 0x7fffffff;
+ $a |= 0x40000000;
+ $a = ($a >> ($b - 1));
+ } else {
+ $a = ($a >> $b);
+ }
+
+ return $a;
}
}
diff --git a/Utils/Parser/Markdown/License.txt b/Utils/Parser/Markdown/License.txt
old mode 100644
new mode 100755
diff --git a/Utils/Parser/Markdown/Markdown.php b/Utils/Parser/Markdown/Markdown.php
index 8d214f6d4..78850d6c6 100644
--- a/Utils/Parser/Markdown/Markdown.php
+++ b/Utils/Parser/Markdown/Markdown.php
@@ -1,6 +1,6 @@
parseImage(__DIR__ . '/img1.png');
+ \similar_text(\file_get_contents(__DIR__ . '/actual.txt'), $parsed, $m1);
+ \similar_text($parsed, \file_get_contents(__DIR__ . '/actual.txt'), $m2);
+
+ \file_put_contents(__DIR__ . '/basic.txt', $parsed);
+ $this->outputTest('No Preprocessing', $m1, $m2);
+
+ self::assertGreaterThan(0.5, $m1);
+ self::assertGreaterThan(0.5, $m2);
+ }
+
+ /**
+ * @covers phpOMS\Ai\Ocr\Tesseract\TesseractOcr
+ * @group framework
+ */
+ public function testOcrWithThresholding() : void
+ {
+ $ocr = new TesseractOcr();
+
+ \copy(__DIR__ . '/img1.png', __DIR__ . '/thresholding.png');
+
+ // preprocessing
+ Thresholding::integralThresholding(__DIR__ . '/thresholding.png', __DIR__ . '/thresholding.png');
+ $parsed = $ocr->parseImage(__DIR__ . '/thresholding.png');
+ \similar_text(\file_get_contents(__DIR__ . '/actual.txt'), $parsed, $m1);
+ \similar_text($parsed, \file_get_contents(__DIR__ . '/actual.txt'), $m2);
+
+ \file_put_contents(__DIR__ . '/thresholding.txt', $parsed);
+ $this->outputTest('Thresholding', $m1, $m2);
+
+ self::assertGreaterThan(0.75, $m1);
+ self::assertGreaterThan(0.75, $m2);
+ }
+
+ /**
+ * @covers phpOMS\Ai\Ocr\Tesseract\TesseractOcr
+ * @group framework
+ */
+ public function testOcrWithThresholdingRotating() : void
+ {
+ $ocr = new TesseractOcr();
+
+ \copy(__DIR__ . '/img1.png', __DIR__ . '/thresholding_rotating.png');
+
+ // preprocessing
+ Thresholding::integralThresholding(__DIR__ . '/thresholding_rotating.png', __DIR__ . '/thresholding_rotating.png');
+ Skew::autoRotate(
+ __DIR__ . '/thresholding_rotating.png',
+ __DIR__ . '/thresholding_rotating.png',
+ 10,
+ [150, 75],
+ [1700, 900]
+ );
+
+ $parsed = $ocr->parseImage(__DIR__ . '/thresholding_rotating.png');
+ \similar_text(\file_get_contents(__DIR__ . '/actual.txt'), $parsed, $m1);
+ \similar_text($parsed, \file_get_contents(__DIR__ . '/actual.txt'), $m2);
+
+ \file_put_contents(__DIR__ . '/thresholding_rotating.txt', $parsed);
+ $this->outputTest('Thresholding + Rotating', $m1, $m2);
+
+ self::assertGreaterThan(0.9, $m1);
+ self::assertGreaterThan(0.9, $m2);
+ }
+
+ /**
+ * @covers phpOMS\Ai\Ocr\Tesseract\TesseractOcr
+ * @group framework
+ */
+ public function testOcrWithSharpeningThresholdingRotating() : void
+ {
+ $ocr = new TesseractOcr();
+
+ \copy(__DIR__ . '/img1.png', __DIR__ . '/sharpening_thresholding_rotating.png');
+
+ // preprocessing
+ Kernel::convolve(__DIR__ . '/sharpening_thresholding_rotating.png', __DIR__ . '/sharpening_thresholding_rotating.png', Kernel::KERNEL_SHARPEN);
+ Thresholding::integralThresholding(__DIR__ . '/sharpening_thresholding_rotating.png', __DIR__ . '/sharpening_thresholding_rotating.png');
+ Skew::autoRotate(
+ __DIR__ . '/sharpening_thresholding_rotating.png',
+ __DIR__ . '/sharpening_thresholding_rotating.png',
+ 10,
+ [150, 75],
+ [1700, 900]
+ );
+
+ $parsed = $ocr->parseImage(__DIR__ . '/sharpening_thresholding_rotating.png');
+ \similar_text(\file_get_contents(__DIR__ . '/actual.txt'), $parsed, $m1);
+ \similar_text($parsed, \file_get_contents(__DIR__ . '/actual.txt'), $m2);
+
+ \file_put_contents(__DIR__ . '/sharpening_thresholding_rotating.txt', $parsed);
+ $this->outputTest('Sharpening + Thresholding + Rotating', $m1, $m2);
+
+ self::assertGreaterThan(0.9, $m1);
+ self::assertGreaterThan(0.9, $m2);
+ }
+}
diff --git a/tests/Ai/Ocr/Tesseract/actual.txt b/tests/Ai/Ocr/Tesseract/actual.txt
new file mode 100644
index 000000000..4a93ee4e3
--- /dev/null
+++ b/tests/Ai/Ocr/Tesseract/actual.txt
@@ -0,0 +1,23 @@
+What is Image Filtering in the Spatial Domain?
+
+Filtering is a technique for modifying or enhancing an image. For example, you can filter an image to emphasize certain
+features or remove other features. Image processing operations implemented with filtering include smoothing, sharpening,
+and edge enhancement.
+
+Filtering is a neighborhood operation, in which the value of any given pixel in the output image is determined by applying
+some algorithm to the values of the pixels in the neighborhood of the corresponding input pixel. A pixel's neighborhood is
+some set of pixels defined by their locations relative to that pixel. (SeeNeighborhood or Block Processing: An Overview for
+a general discussion of neighborhood operations.) Linear filtering is filtering in which the value of an output pixel is a linear
+combination of the values of the pixels in the input pixel's neighborhood.
+
+Convolution
+Linear filtering of an image is accomplished through an operation called convolution. Convolution is a neighborhood
+operation in which each output pixel is the weighted sum of neighboring input pixels. The matrix of wehights is called the
+convolution kernal, also known as the filter. A convolution kernel is a correlation kernel that has been rotated 180 degrees.
+
+For example, suppose the image is
+
+A = [17 24 1 8 15
+23 5 7 14 16
+4 6 13 20 22
+10 12 19 21 3
\ No newline at end of file
diff --git a/tests/Ai/Ocr/Tesseract/basic.txt b/tests/Ai/Ocr/Tesseract/basic.txt
new file mode 100644
index 000000000..80b44e1e6
--- /dev/null
+++ b/tests/Ai/Ocr/Tesseract/basic.txt
@@ -0,0 +1,16 @@
+, you Can filter an image to emphasize certain
+inted with filtering include smoothing, sharpening,
+
+pixel in the output image is determined by applying
+€ corresponding input pixel. A pixel's neighborhood is
+eeNeighborhood or Block Processing: An Overview for
+
+§ filtering in which the value of an output pixel is a linear
+od.
+
+alled convolution. Convolution is a neighborhood
+boring input pixels. The matrix of weights is called the
+‘4 Correlation kernel that has been rotated 12
+
+
+
\ No newline at end of file
diff --git a/tests/Ai/Ocr/Tesseract/img1.png b/tests/Ai/Ocr/Tesseract/img1.png
new file mode 100644
index 000000000..01fd9e908
Binary files /dev/null and b/tests/Ai/Ocr/Tesseract/img1.png differ
diff --git a/tests/Ai/Ocr/Tesseract/sharpening_thresholding_rotating.png b/tests/Ai/Ocr/Tesseract/sharpening_thresholding_rotating.png
new file mode 100644
index 000000000..d8e0b87cf
Binary files /dev/null and b/tests/Ai/Ocr/Tesseract/sharpening_thresholding_rotating.png differ
diff --git a/tests/Ai/Ocr/Tesseract/sharpening_thresholding_rotating.txt b/tests/Ai/Ocr/Tesseract/sharpening_thresholding_rotating.txt
new file mode 100644
index 000000000..f5b180e40
--- /dev/null
+++ b/tests/Ai/Ocr/Tesseract/sharpening_thresholding_rotating.txt
@@ -0,0 +1,7 @@
+hat s Image Filtering in the Spatial Domain? —
+
+iftering is a technique for’ modifying or enhancing an image. For example, you can filter an image to emphasize certain
+tures. image processing operations implemented with filtering include smoothing, sharpening,
+
+
+
\ No newline at end of file
diff --git a/tests/Ai/Ocr/Tesseract/thresholding.png b/tests/Ai/Ocr/Tesseract/thresholding.png
new file mode 100644
index 000000000..9884c39b5
Binary files /dev/null and b/tests/Ai/Ocr/Tesseract/thresholding.png differ
diff --git a/tests/Ai/Ocr/Tesseract/thresholding.txt b/tests/Ai/Ocr/Tesseract/thresholding.txt
new file mode 100644
index 000000000..8013a1f49
--- /dev/null
+++ b/tests/Ai/Ocr/Tesseract/thresholding.txt
@@ -0,0 +1,30 @@
+t Is Image Filtering in the Spatial Domain?
+
+What Is Ima
+
+Filtering is a technique for modifying or enhancing an image. For example, you can filter an image to emphasize certain
+features or remove other features. Image processing operations implemented with filtering include smoothing, sharpening,
+
+and edge enhancement.
+Filtering is a neighborhood operation, in which the value of any given pixel in the output image is determined by applying
+some algorithm to the values of the pixels in the neighborhood of the corresponding input pixel. A pixel’s neighborhood is
+some set of pixels, defined by their locations relative to that pixel. (SeeNeighborhood or Block Processing: An Overview for
+a general discussion of neighborhood Operations.) Linear filtering is filtering in which the value of an output pixel is a linear
+
+combination of the values of the pixels in the input pixel's neighborhood.
+
+Convolution
+Linear filtering of an image is accomplished through an operation called convolution. Convolution is a neightornood
+
+Operation in which each output pixel is the weighted sum of neighboring input pixels. The matrix of weights is called the
+ion kernel that has been rotated 120 cegrees.
+
+For example, suppose the image is
+
+A=[17 24 1 8 15
+2305 7 14 16
+4 6 13 26 22
+1@ 12 19 21 3
+
+
+
\ No newline at end of file
diff --git a/tests/Ai/Ocr/Tesseract/thresholding_rotating.png b/tests/Ai/Ocr/Tesseract/thresholding_rotating.png
new file mode 100644
index 000000000..ba8e9ba49
Binary files /dev/null and b/tests/Ai/Ocr/Tesseract/thresholding_rotating.png differ
diff --git a/tests/Ai/Ocr/Tesseract/thresholding_rotating.txt b/tests/Ai/Ocr/Tesseract/thresholding_rotating.txt
new file mode 100644
index 000000000..e63b15a09
--- /dev/null
+++ b/tests/Ai/Ocr/Tesseract/thresholding_rotating.txt
@@ -0,0 +1,25 @@
+What Is Image Filtering in the Spatial Domain? |
+
+Filtering is a technique for modifying or enhancing an image. For example, you can filter an image to emphasize certain
+features or remove other features. Image processing operations implemented with filtering include smoothing, sharpening,
+and edge enhancement.
+
+Filtering is a neighborhood operation, in which the value of any given pixel in the output image is determined by applying
+some algorithm to the values of the pixels in the neighborhood of the corresponding input pixel. A pixel's neighborhood is
+some set of pixels, defined by their locations relative to that pixel. (SeeNeighborhood or Block Processing: An Overview for
+a general discussion of neighborhood operations.) Linear filtering is filtering in which the value of an output pixel is a linear
+combination of the values of the pixels in the input pixel's neighborhood.
+
+Convolution
+
+Linear filtering of an image is accomplished through an operation called convolution. Convolution is a neightornood
+Operation in which each output pixel is the weighted sum of neighboring input pixels. The matrix of weights is called the
+convolution kemel, also known as the filter. A convolution kemel is a correlation kernel that has been rotated 120 cegre
+
+For example, suppose the image is
+
+= [17 24 1 8 15
+235 7 14 16
+4 6 13 20 22
+1@ 12 19 21 3
+
\ No newline at end of file
diff --git a/tests/Ai/Ocr/t10k-images-idx3-ubyte b/tests/Ai/Ocr/t10k-images-idx3-ubyte
old mode 100644
new mode 100755
diff --git a/tests/Ai/Ocr/t10k-labels-idx1-ubyte b/tests/Ai/Ocr/t10k-labels-idx1-ubyte
old mode 100644
new mode 100755
diff --git a/tests/Ai/Ocr/train-images-idx3-ubyte b/tests/Ai/Ocr/train-images-idx3-ubyte
old mode 100644
new mode 100755
diff --git a/tests/Ai/Ocr/train-labels-idx1-ubyte b/tests/Ai/Ocr/train-labels-idx1-ubyte
old mode 100644
new mode 100755
diff --git a/tests/Algorithm/Clustering/KmeansTest.php b/tests/Algorithm/Clustering/KmeansTest.php
index cfdefd57d..4722c0ab5 100644
--- a/tests/Algorithm/Clustering/KmeansTest.php
+++ b/tests/Algorithm/Clustering/KmeansTest.php
@@ -1,6 +1,6 @@
mail->setFrom('test@orange-management.org', 'Test Name'));
- self::assertEquals([0 => 'test@orange-management.org', 1 => 'Test Name'], $this->mail->getFrom());
+ self::assertTrue($this->mail->setFrom('test@karaka.app', 'Test Name'));
+ self::assertEquals([0 => 'test@karaka.app', 1 => 'Test Name'], $this->mail->getFrom());
}
public function testInvalidFromInputOutput() : void
@@ -72,13 +72,13 @@ final class EmailTestTest extends \PHPUnit\Framework\TestCase
public function testAddTo() : void
{
- self::assertTrue($this->mail->addTo('test@orange-management.org', 'Test Name'));
- self::assertTrue($this->mail->addTo('test2@orange-management.org', 'Test Name 2'));
+ self::assertTrue($this->mail->addTo('test@karaka.app', 'Test Name'));
+ self::assertTrue($this->mail->addTo('test2@karaka.app', 'Test Name 2'));
self::assertEquals(
[
- 'test@orange-management.org' => ['test@orange-management.org', 'Test Name'],
- 'test2@orange-management.org' => ['test2@orange-management.org', 'Test Name 2'],
+ 'test@karaka.app' => ['test@karaka.app', 'Test Name'],
+ 'test2@karaka.app' => ['test2@karaka.app', 'Test Name 2'],
],
$this->mail->to
);
@@ -92,13 +92,13 @@ final class EmailTestTest extends \PHPUnit\Framework\TestCase
public function testAddCC() : void
{
- self::assertTrue($this->mail->addCC('test@orange-management.org', 'Test Name'));
- self::assertTrue($this->mail->addCC('test2@orange-management.org', 'Test Name 2'));
+ self::assertTrue($this->mail->addCC('test@karaka.app', 'Test Name'));
+ self::assertTrue($this->mail->addCC('test2@karaka.app', 'Test Name 2'));
self::assertEquals(
[
- 'test@orange-management.org' => ['test@orange-management.org', 'Test Name'],
- 'test2@orange-management.org' => ['test2@orange-management.org', 'Test Name 2'],
+ 'test@karaka.app' => ['test@karaka.app', 'Test Name'],
+ 'test2@karaka.app' => ['test2@karaka.app', 'Test Name 2'],
],
$this->mail->cc
);
@@ -112,13 +112,13 @@ final class EmailTestTest extends \PHPUnit\Framework\TestCase
public function testAddBCC() : void
{
- self::assertTrue($this->mail->addBCC('test@orange-management.org', 'Test Name'));
- self::assertTrue($this->mail->addBCC('test2@orange-management.org', 'Test Name 2'));
+ self::assertTrue($this->mail->addBCC('test@karaka.app', 'Test Name'));
+ self::assertTrue($this->mail->addBCC('test2@karaka.app', 'Test Name 2'));
self::assertEquals(
[
- 'test@orange-management.org' => ['test@orange-management.org', 'Test Name'],
- 'test2@orange-management.org' => ['test2@orange-management.org', 'Test Name 2'],
+ 'test@karaka.app' => ['test@karaka.app', 'Test Name'],
+ 'test2@karaka.app' => ['test2@karaka.app', 'Test Name 2'],
],
$this->mail->bcc
);
@@ -132,13 +132,13 @@ final class EmailTestTest extends \PHPUnit\Framework\TestCase
public function testAddReplyTo() : void
{
- self::assertTrue($this->mail->addReplyTo('test@orange-management.org', 'Test Name'));
- self::assertTrue($this->mail->addReplyTo('test2@orange-management.org', 'Test Name 2'));
+ self::assertTrue($this->mail->addReplyTo('test@karaka.app', 'Test Name'));
+ self::assertTrue($this->mail->addReplyTo('test2@karaka.app', 'Test Name 2'));
self::assertEquals(
[
- 'test@orange-management.org' => ['test@orange-management.org', 'Test Name'],
- 'test2@orange-management.org' => ['test2@orange-management.org', 'Test Name 2'],
+ 'test@karaka.app' => ['test@karaka.app', 'Test Name'],
+ 'test2@karaka.app' => ['test2@karaka.app', 'Test Name 2'],
],
$this->mail->replyTo
);
@@ -157,8 +157,8 @@ final class EmailTestTest extends \PHPUnit\Framework\TestCase
public function testAddrFormat() : void
{
- self::assertEquals('test@orange-management.org', $this->mail->addrFormat(['test@orange-management.org']));
- self::assertEquals('Test Name ', $this->mail->addrFormat(['test@orange-management.org', 'Test Name']));
+ self::assertEquals('test@karaka.app', $this->mail->addrFormat(['test@karaka.app']));
+ self::assertEquals('Test Name ', $this->mail->addrFormat(['test@karaka.app', 'Test Name']));
}
public function testCustomHeaderInputOutput() : void
@@ -176,23 +176,23 @@ final class EmailTestTest extends \PHPUnit\Framework\TestCase
public function testEmailParsing() : void
{
self::assertEquals(
- [['name' => 'Test Name', 'address' => 'test@orange-management.org']],
- Email::parseAddresses('Test Name ')
+ [['name' => 'Test Name', 'address' => 'test@karaka.app']],
+ Email::parseAddresses('Test Name ')
);
self::assertEquals(
- [['name' => '', 'address' => 'test@orange-management.org']],
- Email::parseAddresses('test@orange-management.org')
+ [['name' => '', 'address' => 'test@karaka.app']],
+ Email::parseAddresses('test@karaka.app')
);
self::assertEquals(
- [['name' => 'Test Name', 'address' => 'test@orange-management.org']],
- Email::parseAddresses('Test Name ', false)
+ [['name' => 'Test Name', 'address' => 'test@karaka.app']],
+ Email::parseAddresses('Test Name ', false)
);
self::assertEquals(
- [['name' => '', 'address' => 'test@orange-management.org']],
- Email::parseAddresses('test@orange-management.org', false)
+ [['name' => '', 'address' => 'test@karaka.app']],
+ Email::parseAddresses('test@karaka.app', false)
);
}
diff --git a/tests/Message/Mail/ImapTest.php b/tests/Message/Mail/ImapTest.php
index 96c501e10..bb1fb1fe7 100644
--- a/tests/Message/Mail/ImapTest.php
+++ b/tests/Message/Mail/ImapTest.php
@@ -1,6 +1,6 @@
priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
- $mail->addCC('test2@orange-management.email', 'Dennis Eichhorn');
- $mail->addBCC('test3@orange-management.email', 'Dennis Eichhorn');
- $mail->addReplyTo('test4@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
+ $mail->addCC('test2@karaka.email', 'Dennis Eichhorn');
+ $mail->addBCC('test3@karaka.email', 'Dennis Eichhorn');
+ $mail->addReplyTo('test4@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendTextWithMail';
$mail->body = "This is some content\n\Image:
";
$mail->altBody = 'Alt body';
@@ -65,12 +65,12 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
- $mail->addCC('test2@orange-management.email', 'Dennis Eichhorn');
- $mail->addBCC('test3@orange-management.email', 'Dennis Eichhorn');
- $mail->addReplyTo('test4@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
+ $mail->addCC('test2@karaka.email', 'Dennis Eichhorn');
+ $mail->addBCC('test3@karaka.email', 'Dennis Eichhorn');
+ $mail->addReplyTo('test4@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendHtmlWithMail';
$message = \file_get_contents(__DIR__ . '/files/utf8.html');
$mail->charset = CharsetType::UTF_8;
@@ -99,9 +99,9 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendInlineWithMail';
$mail->setHtml(true);
$mail->msgHTML("
");
@@ -122,9 +122,9 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAttachmentWithMail';
$mail->addAttachment(__DIR__ . '/files/logo.png', 'logo');
@@ -143,9 +143,9 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAltWithMail';
$mail->altBody = 'Alt body';
@@ -164,9 +164,9 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAltInlineWithMail';
$mail->altBody = 'Alt body';
$mail->setHtml(true);
@@ -188,9 +188,9 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAltAttachmentWithMail';
$mail->altBody = 'Alt body';
$mail->addAttachment(__DIR__ . '/files/logo.png', 'logo');
@@ -210,9 +210,9 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainWithMail';
$mail->body = 'Body';
@@ -231,9 +231,9 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainDKIMWithMail';
$mail->body = 'Body';
$mail->dkimPrivatePath = __DIR__ . '/dkim.pem';
@@ -253,13 +253,13 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainDKIMSignWithMail';
$mail->body = 'Body';
- $mail->dkimDomain = 'orange-management.email';
+ $mail->dkimDomain = 'karaka.email';
$mail->dkimPrivatePath = __DIR__ . '/dkim.pem';
$mail->dkimSelector = 'phpOMS';
$mail->dkimPass = '';
@@ -279,9 +279,9 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainSignWithMail';
$mail->body = 'Body';
@@ -305,15 +305,15 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendICalAltWithMail';
$mail->body = 'Ical test';
$mail->altBody = 'Ical test';
$mail->ical = 'BEGIN:VCALENDAR'
. "\r\nVERSION:2.0"
- . "\r\nPRODID:-//phpOMS//Orange Management Calendar//EN"
+ . "\r\nPRODID:-//phpOMS//Karaka Calendar//EN"
. $methodLine
. "\r\nCALSCALE:GREGORIAN"
. "\r\nX-MICROSOFT-CALSCALE:GREGORIAN"
@@ -362,16 +362,16 @@ trait MailHandlerMailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->addAttachment(__DIR__ . '/files/logo.png', 'logo');
$mail->subject = 'testSendICalAltAttachmentWithMail';
$mail->body = 'Ical test';
$mail->altBody = 'Ical test';
$mail->ical = 'BEGIN:VCALENDAR'
. "\r\nVERSION:2.0"
- . "\r\nPRODID:-//phpOMS//Orange Management Calendar//EN"
+ . "\r\nPRODID:-//phpOMS//Karaka Calendar//EN"
. $methodLine
. "\r\nCALSCALE:GREGORIAN"
. "\r\nX-MICROSOFT-CALSCALE:GREGORIAN"
diff --git a/tests/Message/Mail/MailHandlerSendmailTrait.php b/tests/Message/Mail/MailHandlerSendmailTrait.php
index 9a299ed89..9212cbdfb 100644
--- a/tests/Message/Mail/MailHandlerSendmailTrait.php
+++ b/tests/Message/Mail/MailHandlerSendmailTrait.php
@@ -1,6 +1,6 @@
priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
- $mail->addCC('test2@orange-management.email', 'Dennis Eichhorn');
- $mail->addBCC('test3@orange-management.email', 'Dennis Eichhorn');
- $mail->addReplyTo('test4@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
+ $mail->addCC('test2@karaka.email', 'Dennis Eichhorn');
+ $mail->addBCC('test3@karaka.email', 'Dennis Eichhorn');
+ $mail->addReplyTo('test4@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendTextWithSendmail';
$mail->body = "This is some content\n\Image:
";
$mail->altBody = 'Alt body';
@@ -59,12 +59,12 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
- $mail->addCC('test2@orange-management.email', 'Dennis Eichhorn');
- $mail->addBCC('test3@orange-management.email', 'Dennis Eichhorn');
- $mail->addReplyTo('test4@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
+ $mail->addCC('test2@karaka.email', 'Dennis Eichhorn');
+ $mail->addBCC('test3@karaka.email', 'Dennis Eichhorn');
+ $mail->addReplyTo('test4@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendHtmlWithSendmail';
$message = \file_get_contents(__DIR__ . '/files/utf8.html');
$mail->charset = CharsetType::UTF_8;
@@ -91,9 +91,9 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendInlineWithSendmail';
$mail->setHtml(true);
$mail->msgHTML("
");
@@ -112,9 +112,9 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAttachmentWithSendmail';
$mail->addAttachment(__DIR__ . '/files/logo.png', 'logo');
@@ -131,9 +131,9 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAltWithSendmail';
$mail->altBody = 'Alt body';
@@ -150,9 +150,9 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAltInlineWithSendmail';
$mail->altBody = 'Alt body';
$mail->setHtml(true);
@@ -172,9 +172,9 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAltAttachmentWithSendmail';
$mail->altBody = 'Alt body';
$mail->addAttachment(__DIR__ . '/files/logo.png', 'logo');
@@ -192,9 +192,9 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainWithSendmail';
$mail->body = 'Body';
@@ -211,9 +211,9 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainDKIMWithSendmail';
$mail->body = 'Body';
$mail->dkimPrivatePath = __DIR__ . '/dkim.pem';
@@ -231,13 +231,13 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainDKIMSignWithSendmail';
$mail->body = 'Body';
- $mail->dkimDomain = 'orange-management.email';
+ $mail->dkimDomain = 'karaka.email';
$mail->dkimPrivatePath = __DIR__ . '/dkim.pem';
$mail->dkimSelector = 'phpOMS';
$mail->dkimPass = '';
@@ -255,9 +255,9 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainSignWithSendmail';
$mail->body = 'Body';
@@ -279,15 +279,15 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendICalAltWithSendmail';
$mail->body = 'Ical test';
$mail->altBody = 'Ical test';
$mail->ical = 'BEGIN:VCALENDAR'
. "\r\nVERSION:2.0"
- . "\r\nPRODID:-//phpOMS//Orange Management Calendar//EN"
+ . "\r\nPRODID:-//phpOMS//Karaka Calendar//EN"
. $methodLine
. "\r\nCALSCALE:GREGORIAN"
. "\r\nX-MICROSOFT-CALSCALE:GREGORIAN"
@@ -334,16 +334,16 @@ trait MailHandlerSendmailTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->addAttachment(__DIR__ . '/files/logo.png', 'logo');
$mail->subject = 'testSendICalAltAttachmentWithSendmail';
$mail->body = 'Ical test';
$mail->altBody = 'Ical test';
$mail->ical = 'BEGIN:VCALENDAR'
. "\r\nVERSION:2.0"
- . "\r\nPRODID:-//phpOMS//Orange Management Calendar//EN"
+ . "\r\nPRODID:-//phpOMS//Karaka Calendar//EN"
. $methodLine
. "\r\nCALSCALE:GREGORIAN"
. "\r\nX-MICROSOFT-CALSCALE:GREGORIAN"
diff --git a/tests/Message/Mail/MailHandlerSmtpTrait.php b/tests/Message/Mail/MailHandlerSmtpTrait.php
index 369b6999f..2f621015d 100644
--- a/tests/Message/Mail/MailHandlerSmtpTrait.php
+++ b/tests/Message/Mail/MailHandlerSmtpTrait.php
@@ -1,6 +1,6 @@
priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
- $mail->addCC('test2@orange-management.email', 'Dennis Eichhorn');
- $mail->addBCC('test3@orange-management.email', 'Dennis Eichhorn');
- $mail->addReplyTo('test4@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
+ $mail->addCC('test2@karaka.email', 'Dennis Eichhorn');
+ $mail->addBCC('test3@karaka.email', 'Dennis Eichhorn');
+ $mail->addReplyTo('test4@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendTextWithSmtp';
$mail->body = "This is some content\n\Image:
";
$mail->altBody = 'Alt body';
@@ -72,12 +72,12 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
- $mail->addCC('test2@orange-management.email', 'Dennis Eichhorn');
- $mail->addBCC('test3@orange-management.email', 'Dennis Eichhorn');
- $mail->addReplyTo('test4@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
+ $mail->addCC('test2@karaka.email', 'Dennis Eichhorn');
+ $mail->addBCC('test3@karaka.email', 'Dennis Eichhorn');
+ $mail->addReplyTo('test4@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendHtmlWithSmtp';
$message = \file_get_contents(__DIR__ . '/files/utf8.html');
$mail->charset = CharsetType::UTF_8;
@@ -110,9 +110,9 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendInlineWithSmtp';
$mail->setHtml(true);
$mail->msgHTML("
");
@@ -137,9 +137,9 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAttachmentWithSmtp';
$mail->addAttachment(__DIR__ . '/files/logo.png', 'logo');
@@ -162,9 +162,9 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAltWithSmtp';
$mail->altBody = 'Alt body';
@@ -187,9 +187,9 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAltInlineWithSmtp';
$mail->altBody = 'Alt body';
$mail->setHtml(true);
@@ -215,9 +215,9 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendAltAttachmentWithSmtp';
$mail->altBody = 'Alt body';
$mail->addAttachment(__DIR__ . '/files/logo.png', 'logo');
@@ -241,9 +241,9 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainWithSmtp';
$mail->body = 'Body';
@@ -266,9 +266,9 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainDKIMWithSmtp';
$mail->body = 'Body';
$mail->dkimPrivatePath = __DIR__ . '/dkim.pem';
@@ -292,13 +292,13 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainDKIMSignWithSmtp';
$mail->body = 'Body';
- $mail->dkimDomain = 'orange-management.email';
+ $mail->dkimDomain = 'karaka.email';
$mail->dkimPrivatePath = __DIR__ . '/dkim.pem';
$mail->dkimSelector = 'phpOMS';
$mail->dkimPass = '';
@@ -322,9 +322,9 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendPlainSignWithSmtp';
$mail->body = 'Body';
@@ -352,15 +352,15 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->subject = 'testSendICalAltWithSmtp';
$mail->body = 'Ical test';
$mail->altBody = 'Ical test';
$mail->ical = 'BEGIN:VCALENDAR'
. "\r\nVERSION:2.0"
- . "\r\nPRODID:-//phpOMS//Orange Management Calendar//EN"
+ . "\r\nPRODID:-//phpOMS//Karaka Calendar//EN"
. $methodLine
. "\r\nCALSCALE:GREGORIAN"
. "\r\nX-MICROSOFT-CALSCALE:GREGORIAN"
@@ -413,16 +413,16 @@ trait MailHandlerSmtpTrait
$mail = new Email();
$mail->priority = 1;
- $mail->confirmationAddress = 'test1@orange-management.email';
- $mail->setFrom('test1@orange-management.email', 'Dennis Eichhorn');
- $mail->addTo('test@orange-management.email', 'Dennis Eichhorn');
+ $mail->confirmationAddress = 'test1@karaka.email';
+ $mail->setFrom('test1@karaka.email', 'Dennis Eichhorn');
+ $mail->addTo('test@karaka.email', 'Dennis Eichhorn');
$mail->addAttachment(__DIR__ . '/files/logo.png', 'logo');
$mail->subject = 'testSendICalAltAttachmentWithSmtp';
$mail->body = 'Ical test';
$mail->altBody = 'Ical test';
$mail->ical = 'BEGIN:VCALENDAR'
. "\r\nVERSION:2.0"
- . "\r\nPRODID:-//phpOMS//Orange Management Calendar//EN"
+ . "\r\nPRODID:-//phpOMS//Karaka Calendar//EN"
. $methodLine
. "\r\nCALSCALE:GREGORIAN"
. "\r\nX-MICROSOFT-CALSCALE:GREGORIAN"
diff --git a/tests/Message/Mail/MailHandlerTest.php b/tests/Message/Mail/MailHandlerTest.php
index f67326298..9935c9af9 100644
--- a/tests/Message/Mail/MailHandlerTest.php
+++ b/tests/Message/Mail/MailHandlerTest.php
@@ -1,6 +1,6 @@
'DE',
'stateOrProvinceName' => 'Hesse',
'localityName' => 'Frankfurt',
- 'organizationName' => 'Orange Management',
+ 'organizationName' => 'Karaka',
'organizationalUnitName' => 'Framework',
- 'commonName' => 'Orange Management Test',
- 'emailAddress' => 'test@orange-management.email',
+ 'commonName' => 'Karaka Test',
+ 'emailAddress' => 'test@karaka.email',
];
$keyconfig = [
'digest_alg' => 'sha256',
diff --git a/tests/Message/Mail/Pop3Test.php b/tests/Message/Mail/Pop3Test.php
index 38ba05960..131c5d0ec 100644
--- a/tests/Message/Mail/Pop3Test.php
+++ b/tests/Message/Mail/Pop3Test.php
@@ -1,6 +1,6 @@
This is a mailer test.
-

+
This example uses HTML with the UTF-8 unicode charset.
Chinese text: 郵件內容為空
diff --git a/tests/Message/RequestAbstractTest.php b/tests/Message/RequestAbstractTest.php
index 72bda0031..70e3e729e 100644
--- a/tests/Message/RequestAbstractTest.php
+++ b/tests/Message/RequestAbstractTest.php
@@ -1,6 +1,6 @@
head->renderScript());
self::assertEquals('', $this->head->renderAssets());
self::assertEquals('', $this->head->renderAssetsLate());
- self::assertEquals('', $this->head->render());
+ self::assertEquals('', $this->head->render());
}
/**
@@ -111,7 +111,7 @@ final class HeadTest extends \PHPUnit\Framework\TestCase
$this->head->setScript('key', 'console.log("msg");');
self::assertEquals(
- ''
+ ''
. ''
. ''
. ''
diff --git a/tests/Model/Html/MetaTest.php b/tests/Model/Html/MetaTest.php
index d97273130..2ce2fbded 100644
--- a/tests/Model/Html/MetaTest.php
+++ b/tests/Model/Html/MetaTest.php
@@ -1,6 +1,6 @@
meta->getProperty(''));
self::assertEquals('', $this->meta->getItemprop(''));
self::assertEquals([], $this->meta->getKeywords());
- self::assertEquals('', $this->meta->render());
+ self::assertEquals('', $this->meta->render());
}
/**
@@ -147,7 +147,7 @@ final class MetaTest extends \PHPUnit\Framework\TestCase
. ''
. ''
. ''
- . ''
+ . ''
. ''
. ''
. '',
diff --git a/tests/Model/Message/DomActionTest.php b/tests/Model/Message/DomActionTest.php
index a1bdf5ed2..0bd4d3f82 100644
--- a/tests/Model/Message/DomActionTest.php
+++ b/tests/Model/Message/DomActionTest.php
@@ -1,6 +1,6 @@
Test';
diff --git a/tests/Views/testTemplate.tpl.php b/tests/Views/testTemplate.tpl.php
old mode 100644
new mode 100755
diff --git a/tests/phpunit_no_coverage.xml b/tests/phpunit_no_coverage.xml
old mode 100644
new mode 100755