diff --git a/tests/CommentAddTest.php b/tests/JobTests/AddCommentJobTest.php similarity index 98% rename from tests/CommentAddTest.php rename to tests/JobTests/AddCommentJobTest.php index c8a5ca6b..f301826f 100644 --- a/tests/CommentAddTest.php +++ b/tests/JobTests/AddCommentJobTest.php @@ -1,5 +1,5 @@ assert->areEqual($text, TextHelper::decrypt(TextHelper::encrypt($text))); - } - } - public function testLogging() { $logPath = __DIR__ . '/logs/{yyyy}-{mm}-{dd}.log'; diff --git a/tests/MiscTests/TextHelperTest.php b/tests/MiscTests/TextHelperTest.php new file mode 100644 index 00000000..e50035c3 --- /dev/null +++ b/tests/MiscTests/TextHelperTest.php @@ -0,0 +1,19 @@ +assert->areEqual($text, TextHelper::decrypt(TextHelper::encrypt($text))); + } + } +} diff --git a/tests/run-all.php b/tests/run-all.php index 02f286ef..e5628403 100644 --- a/tests/run-all.php +++ b/tests/run-all.php @@ -1,4 +1,8 @@ getPathname(); + if (preg_match('/.*Test.php$/', $path)) + $testFiles []= $path; + } + + $testClasses = \Chibi\Util\Reflection::loadClasses($testFiles); if ($filter !== null) {