aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/AutonameTest.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-07-17 08:43:08 +0000
committerMario <mario@mariovavti.com>2023-07-17 08:43:08 +0000
commitf86677185418ca32fcdefa825363d7a69b7b2233 (patch)
tree0bddce57ffbd7f7027c0dbb4ab5314ae53c6aee6 /tests/unit/AutonameTest.php
parent70b8c57d220aaaa361967343e2ca7dfa62632569 (diff)
parentb04e0d0fd4173f77f5035860df74ee43097b9256 (diff)
downloadvolse-hubzilla-f86677185418ca32fcdefa825363d7a69b7b2233.tar.gz
volse-hubzilla-f86677185418ca32fcdefa825363d7a69b7b2233.tar.bz2
volse-hubzilla-f86677185418ca32fcdefa825363d7a69b7b2233.zip
Merge branch 'tests/cleanup-unit-tests' into 'dev'
Cleanup unit tests See merge request hubzilla/core!2049
Diffstat (limited to 'tests/unit/AutonameTest.php')
-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() {