diff options
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 +} |