diff options
Diffstat (limited to 'tests/modules/Common.test.php')
-rwxr-xr-x | tests/modules/Common.test.php | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/tests/modules/Common.test.php b/tests/modules/Common.test.php index 3126c2fca7..42c66ab14b 100755 --- a/tests/modules/Common.test.php +++ b/tests/modules/Common.test.php @@ -440,31 +440,31 @@ class Test_Piwik_Common extends UnitTestCase $expectedResult = 'Поиск в Интернете Поиск страниц на русском _*()!$!£$^!£$%'; $expectedResult = htmlentities($expectedResult); $this->assertEqual($result, $expectedResult); - }
-
-
- public function test_isValidFilenameValidValues()
- {
-
- $valid = array(
- "test", "test.txt","test.......", "en-ZHsimplified",
- );
- foreach($valid as $toTest)
- {
- $this->assertTrue(Piwik_Common::isValidFilename($toTest), $toTest." not valid!");
- }
- }
- public function test_isValidFilenameNotValidValues()
- {
-
- $notvalid = array(
- "../test", "/etc/htpasswd", '$var', ';test', '[bizarre]', '', ".htaccess", "very long long eogaioge ageja geau ghaeihieg heiagie aiughaeui hfilename",
- );
- foreach($notvalid as $toTest)
- {
- $this->assertFalse(Piwik_Common::isValidFilename($toTest), $toTest." valid but shouldn't!");
- }
- }
+ } + + + public function test_isValidFilenameValidValues() + { + + $valid = array( + "test", "test.txt","test.......", "en-ZHsimplified", + ); + foreach($valid as $toTest) + { + $this->assertTrue(Piwik_Common::isValidFilename($toTest), $toTest." not valid!"); + } + } + public function test_isValidFilenameNotValidValues() + { + + $notvalid = array( + "../test", "/etc/htpasswd", '$var', ';test', '[bizarre]', '', ".htaccess", "very long long eogaioge ageja geau ghaeihieg heiagie aiughaeui hfilename", + ); + foreach($notvalid as $toTest) + { + $this->assertFalse(Piwik_Common::isValidFilename($toTest), $toTest." valid but shouldn't!"); + } + } } |