aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-07-05 20:47:45 +0200
committerHarald Eilertsen <haraldei@anduin.net>2023-07-12 20:42:37 +0200
commit30b0d0a5cc9372a5d704ad040df7ed2b1bb4930f (patch)
tree4fa75f8f50136ad4b0d529553c1c71291e77d58a
parent9beceb9b020363f1d85a69177c1cb1a484a6cec5 (diff)
downloadvolse-hubzilla-30b0d0a5cc9372a5d704ad040df7ed2b1bb4930f.tar.gz
volse-hubzilla-30b0d0a5cc9372a5d704ad040df7ed2b1bb4930f.tar.bz2
volse-hubzilla-30b0d0a5cc9372a5d704ad040df7ed2b1bb4930f.zip
tests: Cleanup ContainsAttribute test.
Mostly cosmetic to satisfy phpcs + remove explicit require.
-rw-r--r--tests/unit/ContainsAttributeTest.php17
1 files changed, 7 insertions, 10 deletions
diff --git a/tests/unit/ContainsAttributeTest.php b/tests/unit/ContainsAttributeTest.php
index 0930d9837..db9618826 100644
--- a/tests/unit/ContainsAttributeTest.php
+++ b/tests/unit/ContainsAttributeTest.php
@@ -1,24 +1,21 @@
<?php
/**
- * this test tests the contains_attribute function
+ * This test tests the contains_attribute function
*
* @package test.util
*/
use PHPUnit\Framework\TestCase;
-/** required, it is the file under test */
-require_once('include/text.php');
-
/**
* TestCase for the contains_attribute function
*
- * @author Alexander Kampmann
+ * @author Alexander Kampmann
* @package test.util
*/
class ContainsAttributeTest extends TestCase {
/**
- * test attribute contains
+ * Test attribute contains
*/
public function testAttributeContains1() {
$testAttr="class1 notclass2 class3";
@@ -27,7 +24,7 @@ class ContainsAttributeTest extends TestCase {
}
/**
- * test attribute contains
+ * Test attribute contains
*/
public function testAttributeContains2() {
$testAttr="class1 not-class2 class3";
@@ -36,7 +33,7 @@ class ContainsAttributeTest extends TestCase {
}
/**
- * test with empty input
+ * Test with empty input
*/
public function testAttributeContainsEmpty() {
$testAttr="";
@@ -44,10 +41,10 @@ class ContainsAttributeTest extends TestCase {
}
/**
- * test input with special chars
+ * Test input with special chars
*/
public function testAttributeContainsSpecialChars() {
$testAttr="--... %\$รค() /(=?}";
$this->assertFalse(attribute_contains($testAttr, "class2"));
}
-} \ No newline at end of file
+}