improved trashbin test

This commit is contained in:
Florin Peter 2013-05-24 21:35:18 +02:00
parent 1f9ac7850d
commit b32823a96e
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class Test_Encryption_Trashbin extends \PHPUnit_Framework_TestCase
$trashFileSuffix = null;
// find created file with timestamp
foreach($trashFiles as $file) {
if(strncmp($file['path'], $filename, strlen($filename))) {
if(strncmp($file['name'], $filename, strlen($filename)) == 0) {
$path_parts = pathinfo($file['name']);
$trashFileSuffix = $path_parts['extension'];
}