23 class FileTest extends \PHPUnit\Framework\TestCase
35 $file =
new File($hash);
37 $this->assertInstanceOf(File::class, $file);
48 "sha1" =>
"sha1checksum",
49 "md5" =>
"md5checksum",
50 "sha256" =>
"sha256checksum",
65 $hash =
new Hash(
'sha1checksum',
'md5checksum',
'sha256checksum', 123);
66 $findings =
new Findings(
"License1",
"License2", []);
67 $object =
new File($hash);
68 $object->setFindings($findings);
69 $object->setUploads([]);
71 $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.