• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sineflow / clamav / 22552200290

01 Mar 2026 08:41PM UTC coverage: 75.893% (-0.2%) from 76.106%
22552200290

Pull #14

github

pmishev
Modernise codebase for PHP 8.2+ with minor API changes

- [BC] ScanStrategyClamdNetwork port is now int, not string
- [BC] Scanner::$scanStrategy is now private
- [BC] ScannerFactory throws \InvalidArgumentException for unknown strategies
- [BC] ScannedFile::__construct throws FileScanException on failure to parse clamav response
Pull Request #14: 2.0.0

13 of 22 new or added lines in 7 files covered. (59.09%)

4 existing lines in 3 files now uncovered.

85 of 112 relevant lines covered (75.89%)

50.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

55.56
/src/Exception/FileScanException.php
1
<?php
2

3
namespace Sineflow\ClamAV\Exception;
4

5
class FileScanException extends \RuntimeException
6
{
7
    private string $fileName;
8

9
    private string $errorMessage;
10

11
    public function __construct(string $fileName, string $errorMessage)
54✔
12
    {
13
        $this->fileName = $fileName;
54✔
14
        $this->errorMessage = $errorMessage;
54✔
15
        $message = sprintf('Error scanning "%s": %s', $fileName, $errorMessage);
54✔
16

17
        parent::__construct($message);
54✔
18
    }
19

UNCOV
20
    public function getFileName(): string
×
21
    {
22
        return $this->fileName;
×
23
    }
24

UNCOV
25
    public function getErrorMessage(): string
×
26
    {
27
        return $this->errorMessage;
×
28
    }
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc