public function checkFileSize($fileName, $fileSize)
    {
        $this->inCurrentDir(function() use ($fileName, $fileSize) {
            if (filesize($fileName) !== $fileSize) {
                throw new ExpectationException("Size of $fileName not equals $fileSize");
            }
        });
    }
public function checkFileSize($fileName, $fileSize)
    {
        $this->inCurrentDir(function() use ($fileName, $fileSize) {
            if (filesize($fileName) !== $fileSize) {
                throw new ExpectationException("Size of $fileName not equals $fileSize");
            }
        });
    }
public function checkFileSize ( $ fileName , $ fileSize ) { $ this -> inCurrentDir ( function ( ) use ( $ fileName , $ fileSize ) { if ( filesize ( $ fileName ) !== $ fileSize ) { throw new ExpectationException ( "Size of $fileName not equals $fileSize" ) ; } } ) ; }
Check a file's size

@param string $fileName
@param int $fileSize
Check a file s size