diff options
author | Mario <mario@mariovavti.com> | 2023-11-25 17:12:28 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-11-25 17:12:28 +0100 |
commit | 0fd8e02a884a2b040dca62ab5d9674db5f6a070b (patch) | |
tree | 586ee43f32f6f14368c09026f21dcd3244ea24b6 /tests/unit/AutonameTest.php | |
parent | 82e704ec5b107823c09f1387e9091adee53a4c2d (diff) | |
parent | 55c4bfb67009c598f25b1a8189604bfffa73dfbb (diff) | |
download | volse-hubzilla-8.8.tar.gz volse-hubzilla-8.8.tar.bz2 volse-hubzilla-8.8.zip |
Merge branch '8.8RC'8.8
Diffstat (limited to 'tests/unit/AutonameTest.php')
-rw-r--r-- | tests/unit/AutonameTest.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/tests/unit/AutonameTest.php b/tests/unit/AutonameTest.php index 566fe6149..b79a600c5 100644 --- a/tests/unit/AutonameTest.php +++ b/tests/unit/AutonameTest.php @@ -1,24 +1,21 @@ <?php /** - * this file contains tests for the autoname function + * This file contains tests for the autoname function * * @package test.util */ use PHPUnit\Framework\TestCase; -/** required, it is the file under test */ -require_once('include/text.php'); - /** * TestCase for the autoname function * - * @author Alexander Kampmann + * @author Alexander Kampmann * @package test.util */ class AutonameTest extends TestCase { /** - *autonames should be random, even length + * Autonames should be random, even length */ public function testAutonameEven() { $autoname1=autoname(10); @@ -28,7 +25,7 @@ class AutonameTest extends TestCase { } /** - *autonames should be random, odd length + * Autonames should be random, odd length */ public function testAutonameOdd() { $autoname1=autoname(9); @@ -38,7 +35,7 @@ class AutonameTest extends TestCase { } /** - * try to fail autonames + * Try to fail autonames */ public function testAutonameNoLength() { $autoname1=autoname(0); @@ -46,7 +43,7 @@ class AutonameTest extends TestCase { } /** - * try to fail it with invalid input + * Try to fail it with invalid input * * TODO: What's corect behaviour here? An exception? */ @@ -61,7 +58,7 @@ class AutonameTest extends TestCase { // } /** - * test with a length, that may be too short + * Test with a length, that may be too short * length is maximum - autoname can return something shorter. */ public function testAutonameLength1() { |