class VersionTest extends TestCase
{ public function testEmptyConstructor(): void
{ $version =
new Version();
static::
assertSame('',
$version->title
);
static::
assertSame('',
$version->body
);
static::
assertSame('',
$version->version
);
static::
assertSame([],
$version->fixedVulnerabilities
);
static::
assertSame('update_api_version',
$version->
getApiAlias());
} public function testFillConstructor(): void
{ $vuln =
['severity' => 'severity', 'summary' => 'summary', 'link' => 'link'
];
$version =
new Version([ 'title' => 'title',
'body' => 'body',
'version' => 'version',
'fixedVulnerabilities' =>
[$vuln],
'date' => '2020-01-01',
]);