public function parse(string $file) : array
{
if (false === file_exists($file)) {
throw InvalidArgumentExceptionFactory::createForFileCouldNotBeFound($file);
}
$data = (include $file);
if (false === is_array($data)) {
throw TypeErrorFactory::createForInvalidFixtureFileReturnedData($file);
}
return $data;
}