23 class FileTest extends \PHPUnit\Framework\TestCase
33 "sha1" =>
"sha1checksum",
34 "md5" =>
"md5checksum",
35 "sha256" =>
"sha256checksum",
50 $hash =
new Hash(
'sha1checksum',
'md5checksum',
'sha256checksum', 123);
51 $findings =
new Findings(
"License1",
"License2", []);
52 $object =
new File($hash);
53 $object->setFindings($findings);
54 $object->setUploads([]);
56 $this->assertEquals($expectedArray, $object->getArray());
File model holding information about a single file.
Model holding information about license findings and conclusions.
Hash model holding information about file like checksums and size.