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/ContainsAttributeTest.php | |
parent | 82e704ec5b107823c09f1387e9091adee53a4c2d (diff) | |
parent | 55c4bfb67009c598f25b1a8189604bfffa73dfbb (diff) | |
download | volse-hubzilla-0fd8e02a884a2b040dca62ab5d9674db5f6a070b.tar.gz volse-hubzilla-0fd8e02a884a2b040dca62ab5d9674db5f6a070b.tar.bz2 volse-hubzilla-0fd8e02a884a2b040dca62ab5d9674db5f6a070b.zip |
Merge branch '8.8RC'8.8
Diffstat (limited to 'tests/unit/ContainsAttributeTest.php')
-rw-r--r-- | tests/unit/ContainsAttributeTest.php | 17 |
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 +} |