public function testShouldValidateSplFileInfo()
{
$root = vfsStream::setup();
$file1Gb = vfsStream::newFile('1gb.txt')->withContent(LargeFileContent::withGigabytes(1))->at($root);
$file1GbObject = new SplFileInfo($file1Gb->url());
$rule = new Size('1MB', '2GB');
$this->assertTrue($rule->validate($file1GbObject));
}