aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-07-05 20:46:40 +0200
committerHarald Eilertsen <haraldei@anduin.net>2023-07-12 20:42:37 +0200
commit9beceb9b020363f1d85a69177c1cb1a484a6cec5 (patch)
treeae3497884c780203e80c16154b79b26d59939679 /tests/unit
parent6f13cabfba7fb3b64ccc9647f1c58ad4a8ec5286 (diff)
downloadvolse-hubzilla-9beceb9b020363f1d85a69177c1cb1a484a6cec5.tar.gz
volse-hubzilla-9beceb9b020363f1d85a69177c1cb1a484a6cec5.tar.bz2
volse-hubzilla-9beceb9b020363f1d85a69177c1cb1a484a6cec5.zip
tests: Cleanup Autoname test.
Not sure if this test is actually useful, but leave it for now.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/AutonameTest.php17
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() {