Permalink
Browse files

Set method visibility to public in FileNameFilterTest

  • Loading branch information...
1 parent a29bca3 commit 2c5c4886b0a80ca4f84f6277b21236ef280e5058 @halkyon halkyon committed Nov 2, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 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));

0 comments on commit 2c5c488

Please sign in to comment.