fromContent('some content')->shouldReturn(md5('some content')); } function it_calculates_checksum_from_filepath() { $path = __DIR__.DIRECTORY_SEPARATOR.'testFile'; $this->fromFile($path)->shouldReturn(md5('some other content')); } function letgo() { $path = __DIR__.DIRECTORY_SEPARATOR.'testFile'; @unlink(__DIR__.DIRECTORY_SEPARATOR.'testFile'); } }