Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set method visibility to public in FileNameFilterTest

  • Loading branch information...
commit 2c5c4886b0a80ca4f84f6277b21236ef280e5058 1 parent a29bca3
@halkyon halkyon authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 tests/filesystem/FileNameFilterTest.php
View
18 tests/filesystem/FileNameFilterTest.php
@@ -54,55 +54,55 @@ public function testFilterWithEmptyString() {
);
}
- function testUnderscoresStartOfNameRemoved() {
+ public function testUnderscoresStartOfNameRemoved() {
$name = '_test.txt';
$filter = new FileNameFilter();
$this->assertEquals('test.txt', $filter->filter($name));
}
- function testDoubleUnderscoresStartOfNameRemoved() {
+ public function testDoubleUnderscoresStartOfNameRemoved() {
$name = '__test.txt';
$filter = new FileNameFilter();
$this->assertEquals('test.txt', $filter->filter($name));
}
- function testDotsStartOfNameRemoved() {
+ public function testDotsStartOfNameRemoved() {
$name = '.test.txt';
$filter = new FileNameFilter();
$this->assertEquals('test.txt', $filter->filter($name));
}
- function testDoubleDotsStartOfNameRemoved() {
+ public function testDoubleDotsStartOfNameRemoved() {
$name = '..test.txt';
$filter = new FileNameFilter();
$this->assertEquals('test.txt', $filter->filter($name));
}
- function testMixedInvalidCharsStartOfNameRemoved() {
+ public function testMixedInvalidCharsStartOfNameRemoved() {
$name = '..#@$#@$^__test.txt';
$filter = new FileNameFilter();
$this->assertEquals('test.txt', $filter->filter($name));
}
- function testWhitespaceRemoved() {
+ public function testWhitespaceRemoved() {
$name = ' test doc.txt';
$filter = new FileNameFilter();
$this->assertEquals('test-doc.txt', $filter->filter($name));
}
- function testUnderscoresReplacedWithDashes() {
+ public function testUnderscoresReplacedWithDashes() {
$name = 'test_doc.txt';
$filter = new FileNameFilter();
$this->assertEquals('test-doc.txt', $filter->filter($name));
}
- function testNonAsciiCharsReplacedWithDashes() {
+ public function testNonAsciiCharsReplacedWithDashes() {
$name = '!@#$%^test_123@##@$#%^.txt';
$filter = new FileNameFilter();
$this->assertEquals('test-123.txt', $filter->filter($name));
}
- function testDuplicateDashesRemoved() {
+ public function testDuplicateDashesRemoved() {
$name = 'test--document.txt';
$filter = new FileNameFilter();
$this->assertEquals('test-document.txt', $filter->filter($name));
Please sign in to comment.
Something went wrong with that request. Please try again.