Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Torresi committed Nov 29, 2013
1 parent 7170aa8 commit 9764cd3
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions test/File/Crc32Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ public function testZF11258()
$this->assertContains("does not exist", current($validator->getMessages()));
}

public function testEmptyFileArrayShouldReturnFalseRatherThanTriggeringError()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\Crc32('12345');
$validator = new File\Crc32();

$this->assertFalse($validator->isValid(''));
$this->assertArrayHasKey(File\Crc32::NOT_FOUND, $validator->getMessages());
Expand Down
2 changes: 1 addition & 1 deletion test/File/ExcludeExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function testZF11258()
$this->assertContains("does not exist", current($validator->getMessages()));
}

public function testEmptyFileArrayShouldReturnFalse()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\ExcludeExtension('12345');

Expand Down
4 changes: 2 additions & 2 deletions test/File/ExcludeMimeTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ public function testAddMimeType()
$this->assertEquals(array('image/gif', 'text', 'jpg', 'to', 'zip', 'ti'), $validator->getMimeType(true));
}

public function testEmptyFileArrayShouldReturnFalse()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new ExcludeMimeType('image/gif');
$validator = new ExcludeMimeType();

$this->assertFalse($validator->isValid(''));
$this->assertArrayHasKey(ExcludeMimeType::NOT_READABLE, $validator->getMessages());
Expand Down
2 changes: 1 addition & 1 deletion test/File/ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function testZF11258()
$this->assertContains("does not exist", current($validator->getMessages()));
}

public function testEmptyFileArrayShouldReturnFalse()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\Extension('foo');

Expand Down
2 changes: 1 addition & 1 deletion test/File/FilesSizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function errorHandler($errno, $errstr)
}
}

public function testEmptyFileArrayShouldReturnFalse()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\FilesSize(0);

Expand Down
2 changes: 1 addition & 1 deletion test/File/HashTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function testZF11258()
$this->assertContains("does not exist", current($validator->getMessages()));
}

public function testEmptyFileArrayShouldReturnFalseRatherThanTriggerError()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\Hash();

Expand Down
2 changes: 1 addition & 1 deletion test/File/ImageSizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function testZF11258()
$this->assertContains("does not exist", current($validator->getMessages()));
}

public function testEmptyFileArrayShouldReturnFalseRatherThanTriggerError()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\ImageSize();

Expand Down
2 changes: 1 addition & 1 deletion test/File/Md5Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function testZF11258()
$this->assertContains("does not exist", current($validator->getMessages()));
}

public function testEmptyFileArrayShouldReturnFalseRatherThanTriggerError()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\Md5();

Expand Down
2 changes: 1 addition & 1 deletion test/File/MimeTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function testDisablingMagicFileByConstructor()
$this->assertFalse($validator->getMagicFile());
}

public function testEmptyFileArrayShouldReturnFalseRatherThanTriggeringFinfoWarning()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
if (! extension_loaded('fileinfo')) {
$this->markTestSkipped('This PHP Version has no finfo installed');
Expand Down
4 changes: 2 additions & 2 deletions test/File/Sha1Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ public function testZF11258()
$this->assertContains("does not exist", current($validator->getMessages()));
}

public function testEmptyFileArrayShouldReturnFalseRatherThanTriggeringError()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\Sha1('foo');
$validator = new File\Sha1();

$this->assertFalse($validator->isValid(''));
$this->assertArrayHasKey(File\Sha1::NOT_FOUND, $validator->getMessages());
Expand Down
2 changes: 1 addition & 1 deletion test/File/SizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function testZF11258()
$this->assertContains("does not exist", current($validator->getMessages()));
}

public function testEmptyFileArrayShouldReturnFalseRatherThanTriggerError()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\Size();

Expand Down
2 changes: 1 addition & 1 deletion test/File/UploadFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function testZF11258()
$this->assertContains("not found", current($validator->getMessages()));
}

public function testEmptyFileArrayShouldReturnFalseRatherThanTriggerError()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\UploadFile();

Expand Down
2 changes: 1 addition & 1 deletion test/File/WordCountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function testZF11258()
$this->assertContains("does not exist", current($validator->getMessages()));
}

public function testEmptyFileArrayShouldReturnFalseRatherThanTriggerError()
public function testEmptyFileShouldReturnFalseAndDisplayNotFoundMessage()
{
$validator = new File\WordCount();

Expand Down

0 comments on commit 9764cd3

Please sign in to comment.