mirror of
https://github.com/OPSnet/Logchecker.git
synced 2026-01-16 18:04:27 -05:00
Update phpunit to ^10.5
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,6 +5,7 @@ logchecker.phar
|
|||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
|
.phpunit.cache/
|
||||||
report/
|
report/
|
||||||
|
|
||||||
/tests/logs/old
|
/tests/logs/old
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"bin": ["bin/logchecker"],
|
"bin": ["bin/logchecker"],
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpstan/phpstan": "^1.10",
|
"phpstan/phpstan": "^1.10",
|
||||||
"phpunit/phpunit": "^9.6",
|
"phpunit/phpunit": "^10.5",
|
||||||
"squizlabs/php_codesniffer": "^3.8.0"
|
"squizlabs/php_codesniffer": "^3.8.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
603
composer.lock
generated
603
composer.lock
generated
File diff suppressed because it is too large
Load Diff
20
phpunit.xml
20
phpunit.xml
@@ -1,16 +1,6 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<phpunit
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" colors="true" bootstrap="vendor/autoload.php" cacheDirectory=".phpunit.cache">
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<coverage>
|
||||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
|
|
||||||
colors="true"
|
|
||||||
bootstrap="vendor/autoload.php"
|
|
||||||
verbose="true"
|
|
||||||
>
|
|
||||||
<coverage processUncoveredFiles="true">
|
|
||||||
<include>
|
|
||||||
<directory suffix=".php">src</directory>
|
|
||||||
</include>
|
|
||||||
<exclude/>
|
|
||||||
<report>
|
<report>
|
||||||
<html outputDirectory="report"/>
|
<html outputDirectory="report"/>
|
||||||
<text outputFile="php://stdout" showUncoveredFiles="false"/>
|
<text outputFile="php://stdout" showUncoveredFiles="false"/>
|
||||||
@@ -22,4 +12,10 @@
|
|||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
<logging/>
|
<logging/>
|
||||||
|
<source>
|
||||||
|
<include>
|
||||||
|
<directory suffix=".php">src</directory>
|
||||||
|
</include>
|
||||||
|
<exclude/>
|
||||||
|
</source>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use OrpheusNET\Logchecker\Exception\UnknownRipperException;
|
|||||||
|
|
||||||
class RipperTest extends TestCase
|
class RipperTest extends TestCase
|
||||||
{
|
{
|
||||||
public function ripperDataProvider()
|
public static function ripperDataProvider()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||||||
|
|
||||||
class LogcheckerTest extends TestCase
|
class LogcheckerTest extends TestCase
|
||||||
{
|
{
|
||||||
public function logDataProvider(): array
|
public static function logDataProvider(): array
|
||||||
{
|
{
|
||||||
$return = [];
|
$return = [];
|
||||||
foreach ([Ripper::EAC, Ripper::XLD, Ripper::WHIPPER] as $ripper) {
|
foreach ([Ripper::EAC, Ripper::XLD, Ripper::WHIPPER] as $ripper) {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ use PHPUnit\Framework\TestCase;
|
|||||||
|
|
||||||
class TranslatorTest extends TestCase
|
class TranslatorTest extends TestCase
|
||||||
{
|
{
|
||||||
public function foreignLogDataProvider()
|
public static function foreignLogDataProvider()
|
||||||
{
|
{
|
||||||
$logs = [];
|
$logs = [];
|
||||||
$logPath = implode(DIRECTORY_SEPARATOR, [__DIR__, '..', '..', 'logs', 'eac', 'utf8']);
|
$logPath = implode(DIRECTORY_SEPARATOR, [__DIR__, '..', '..', 'logs', 'eac', 'utf8']);
|
||||||
@@ -53,7 +53,7 @@ class TranslatorTest extends TestCase
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function englishLogProvider()
|
public static function englishLogProvider()
|
||||||
{
|
{
|
||||||
return array_map(
|
return array_map(
|
||||||
function ($file) {
|
function ($file) {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||||||
|
|
||||||
class UtilTest extends TestCase
|
class UtilTest extends TestCase
|
||||||
{
|
{
|
||||||
public function commandExistsDataProvider(): array
|
public static function commandExistsDataProvider(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['cd', true],
|
['cd', true],
|
||||||
@@ -25,7 +25,7 @@ class UtilTest extends TestCase
|
|||||||
$this->assertSame($exists, Util::commandExists($command));
|
$this->assertSame($exists, Util::commandExists($command));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function decodeLogDataProvider(): array
|
public static function decodeLogDataProvider(): array
|
||||||
{
|
{
|
||||||
$logPath = implode(DIRECTORY_SEPARATOR, [__DIR__, 'logs', 'eac', 'originals']);
|
$logPath = implode(DIRECTORY_SEPARATOR, [__DIR__, 'logs', 'eac', 'originals']);
|
||||||
$return = [];
|
$return = [];
|
||||||
|
|||||||
212
tests/logs/xld/originals/cdparanoia.log
Normal file
212
tests/logs/xld/originals/cdparanoia.log
Normal file
@@ -0,0 +1,212 @@
|
|||||||
|
X Lossless Decoder version 20090320 (105.1)
|
||||||
|
|
||||||
|
XLD extraction logfile from 2009-05-08 18:00:06 -0400
|
||||||
|
|
||||||
|
Tram / Heavy Black Frame
|
||||||
|
|
||||||
|
Used Drive : PIONEER DVD-RW DVR-111D (revision 1.19)
|
||||||
|
|
||||||
|
Use cdparanoia mode : YES (CDParanoia III 10.2 engine)
|
||||||
|
Disable audio cache : OK for the drive with cache less than 2750KB
|
||||||
|
Make use of C2 pointers : YES
|
||||||
|
Read offset correction : 48
|
||||||
|
Max retry count : 100
|
||||||
|
|
||||||
|
TOC of the extracted CD
|
||||||
|
Track | Start | Length | Start sector | End sector
|
||||||
|
---------------------------------------------------------
|
||||||
|
1 | 00:00:00 | 04:33:30 | 0 | 20504
|
||||||
|
2 | 04:33:30 | 06:03:28 | 20505 | 47757
|
||||||
|
3 | 10:36:58 | 03:33:14 | 47758 | 63746
|
||||||
|
4 | 14:09:72 | 03:56:11 | 63747 | 81457
|
||||||
|
5 | 18:06:08 | 03:48:41 | 81458 | 98598
|
||||||
|
6 | 21:54:49 | 03:43:37 | 98599 | 115360
|
||||||
|
7 | 25:38:11 | 04:21:35 | 115361 | 134970
|
||||||
|
8 | 29:59:46 | 04:31:04 | 134971 | 155299
|
||||||
|
9 | 34:30:50 | 05:49:42 | 155300 | 181516
|
||||||
|
10 | 40:20:17 | 03:28:70 | 181517 | 197186
|
||||||
|
|
||||||
|
|
||||||
|
Track 01
|
||||||
|
Filename : /Volumes/Scarab/Audio/Music Incoming/New Encodes/Tram - Heavy Black Frame (flac)/01 Tram - Nothing Left To Say.flac
|
||||||
|
|
||||||
|
CRC32 hash (test run) : 6753193C
|
||||||
|
CRC32 hash : 6753193C
|
||||||
|
CRC32 hash (skip zero) : FB110822
|
||||||
|
AccurateRip signature : B1D50FB7
|
||||||
|
->Accurately ripped! (confidence 1)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Skipped (treated as error) : 0
|
||||||
|
Edge jitter error (maybe fixed) : 0
|
||||||
|
Atom jitter error (maybe fixed) : 0
|
||||||
|
Drift error (maybe fixed) : 0
|
||||||
|
Dropped bytes error (maybe fixed) : 0
|
||||||
|
Duplicated bytes error (maybe fixed) : 0
|
||||||
|
Inconsistency in error sectors : 0
|
||||||
|
|
||||||
|
Track 02
|
||||||
|
Filename : /Volumes/Scarab/Audio/Music Incoming/New Encodes/Tram - Heavy Black Frame (flac)/02 Tram - Expectations.flac
|
||||||
|
|
||||||
|
CRC32 hash (test run) : 9CC834A9
|
||||||
|
CRC32 hash : 9CC834A9
|
||||||
|
CRC32 hash (skip zero) : A311B87C
|
||||||
|
AccurateRip signature : BFD0591D
|
||||||
|
->Accurately ripped! (confidence 1)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Skipped (treated as error) : 0
|
||||||
|
Edge jitter error (maybe fixed) : 0
|
||||||
|
Atom jitter error (maybe fixed) : 0
|
||||||
|
Drift error (maybe fixed) : 0
|
||||||
|
Dropped bytes error (maybe fixed) : 0
|
||||||
|
Duplicated bytes error (maybe fixed) : 0
|
||||||
|
Inconsistency in error sectors : 0
|
||||||
|
|
||||||
|
Track 03
|
||||||
|
Filename : /Volumes/Scarab/Audio/Music Incoming/New Encodes/Tram - Heavy Black Frame (flac)/03 Tram - Too Scared To Sleep.flac
|
||||||
|
|
||||||
|
CRC32 hash (test run) : 2C4D534C
|
||||||
|
CRC32 hash : 2C4D534C
|
||||||
|
CRC32 hash (skip zero) : E5175733
|
||||||
|
AccurateRip signature : 7B609EE7
|
||||||
|
->Accurately ripped! (confidence 1)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Skipped (treated as error) : 0
|
||||||
|
Edge jitter error (maybe fixed) : 0
|
||||||
|
Atom jitter error (maybe fixed) : 0
|
||||||
|
Drift error (maybe fixed) : 0
|
||||||
|
Dropped bytes error (maybe fixed) : 0
|
||||||
|
Duplicated bytes error (maybe fixed) : 0
|
||||||
|
Inconsistency in error sectors : 0
|
||||||
|
|
||||||
|
Track 04
|
||||||
|
Filename : /Volumes/Scarab/Audio/Music Incoming/New Encodes/Tram - Heavy Black Frame (flac)/04 Tram - Like Clockwork.flac
|
||||||
|
|
||||||
|
CRC32 hash (test run) : BB270521
|
||||||
|
CRC32 hash : BB270521
|
||||||
|
CRC32 hash (skip zero) : 542603F4
|
||||||
|
AccurateRip signature : FC96437C
|
||||||
|
->Accurately ripped! (confidence 1)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Skipped (treated as error) : 0
|
||||||
|
Edge jitter error (maybe fixed) : 0
|
||||||
|
Atom jitter error (maybe fixed) : 0
|
||||||
|
Drift error (maybe fixed) : 0
|
||||||
|
Dropped bytes error (maybe fixed) : 0
|
||||||
|
Duplicated bytes error (maybe fixed) : 0
|
||||||
|
Inconsistency in error sectors : 0
|
||||||
|
|
||||||
|
Track 05
|
||||||
|
Filename : /Volumes/Scarab/Audio/Music Incoming/New Encodes/Tram - Heavy Black Frame (flac)/05 Tram - Home.flac
|
||||||
|
|
||||||
|
CRC32 hash (test run) : BBF90090
|
||||||
|
CRC32 hash : BBF90090
|
||||||
|
CRC32 hash (skip zero) : 049DAA94
|
||||||
|
AccurateRip signature : 873FF51D
|
||||||
|
->Accurately ripped! (confidence 1)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Skipped (treated as error) : 0
|
||||||
|
Edge jitter error (maybe fixed) : 0
|
||||||
|
Atom jitter error (maybe fixed) : 0
|
||||||
|
Drift error (maybe fixed) : 0
|
||||||
|
Dropped bytes error (maybe fixed) : 0
|
||||||
|
Duplicated bytes error (maybe fixed) : 0
|
||||||
|
Inconsistency in error sectors : 0
|
||||||
|
|
||||||
|
Track 06
|
||||||
|
Filename : /Volumes/Scarab/Audio/Music Incoming/New Encodes/Tram - Heavy Black Frame (flac)/06 Tram - I've Been Here Once Before.flac
|
||||||
|
|
||||||
|
CRC32 hash (test run) : E595D578
|
||||||
|
CRC32 hash : E595D578
|
||||||
|
CRC32 hash (skip zero) : 2C5A34A3
|
||||||
|
AccurateRip signature : 9E38E6DE
|
||||||
|
->Accurately ripped! (confidence 1)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Skipped (treated as error) : 0
|
||||||
|
Edge jitter error (maybe fixed) : 0
|
||||||
|
Atom jitter error (maybe fixed) : 0
|
||||||
|
Drift error (maybe fixed) : 0
|
||||||
|
Dropped bytes error (maybe fixed) : 0
|
||||||
|
Duplicated bytes error (maybe fixed) : 0
|
||||||
|
Inconsistency in error sectors : 0
|
||||||
|
|
||||||
|
Track 07
|
||||||
|
Filename : /Volumes/Scarab/Audio/Music Incoming/New Encodes/Tram - Heavy Black Frame (flac)/07 Tram - High Ground.flac
|
||||||
|
|
||||||
|
CRC32 hash (test run) : FF0E7DAD
|
||||||
|
CRC32 hash : FF0E7DAD
|
||||||
|
CRC32 hash (skip zero) : 8E985271
|
||||||
|
AccurateRip signature : E839C730
|
||||||
|
->Accurately ripped! (confidence 1)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Skipped (treated as error) : 0
|
||||||
|
Edge jitter error (maybe fixed) : 0
|
||||||
|
Atom jitter error (maybe fixed) : 0
|
||||||
|
Drift error (maybe fixed) : 0
|
||||||
|
Dropped bytes error (maybe fixed) : 0
|
||||||
|
Duplicated bytes error (maybe fixed) : 0
|
||||||
|
Inconsistency in error sectors : 0
|
||||||
|
|
||||||
|
Track 08
|
||||||
|
Filename : /Volumes/Scarab/Audio/Music Incoming/New Encodes/Tram - Heavy Black Frame (flac)/08 Tram - When Its All Over.flac
|
||||||
|
|
||||||
|
CRC32 hash (test run) : 3F1A4030
|
||||||
|
CRC32 hash : 3F1A4030
|
||||||
|
CRC32 hash (skip zero) : 967CC2CA
|
||||||
|
AccurateRip signature : DC1CDE99
|
||||||
|
->Accurately ripped! (confidence 1)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Skipped (treated as error) : 0
|
||||||
|
Edge jitter error (maybe fixed) : 0
|
||||||
|
Atom jitter error (maybe fixed) : 0
|
||||||
|
Drift error (maybe fixed) : 0
|
||||||
|
Dropped bytes error (maybe fixed) : 0
|
||||||
|
Duplicated bytes error (maybe fixed) : 0
|
||||||
|
Inconsistency in error sectors : 0
|
||||||
|
|
||||||
|
Track 09
|
||||||
|
Filename : /Volumes/Scarab/Audio/Music Incoming/New Encodes/Tram - Heavy Black Frame (flac)/09 Tram - Reason Why.flac
|
||||||
|
|
||||||
|
CRC32 hash (test run) : 903D79E7
|
||||||
|
CRC32 hash : 903D79E7
|
||||||
|
CRC32 hash (skip zero) : 2C1005B4
|
||||||
|
AccurateRip signature : 9B15CDF1
|
||||||
|
->Accurately ripped! (confidence 1)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Skipped (treated as error) : 0
|
||||||
|
Edge jitter error (maybe fixed) : 0
|
||||||
|
Atom jitter error (maybe fixed) : 0
|
||||||
|
Drift error (maybe fixed) : 0
|
||||||
|
Dropped bytes error (maybe fixed) : 0
|
||||||
|
Duplicated bytes error (maybe fixed) : 0
|
||||||
|
Inconsistency in error sectors : 0
|
||||||
|
|
||||||
|
Track 10
|
||||||
|
Filename : /Volumes/Scarab/Audio/Music Incoming/New Encodes/Tram - Heavy Black Frame (flac)/10 Tram - You Can Go Now (if you want).flac
|
||||||
|
|
||||||
|
CRC32 hash (test run) : 6F30BF8E
|
||||||
|
CRC32 hash : 6F30BF8E
|
||||||
|
CRC32 hash (skip zero) : 86ECA8E4
|
||||||
|
AccurateRip signature : AD6E1659
|
||||||
|
->Accurately ripped! (confidence 1)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Skipped (treated as error) : 0
|
||||||
|
Edge jitter error (maybe fixed) : 0
|
||||||
|
Atom jitter error (maybe fixed) : 0
|
||||||
|
Drift error (maybe fixed) : 0
|
||||||
|
Dropped bytes error (maybe fixed) : 0
|
||||||
|
Duplicated bytes error (maybe fixed) : 0
|
||||||
|
Inconsistency in error sectors : 0
|
||||||
|
|
||||||
|
No errors occurred
|
||||||
|
|
||||||
|
End of status report
|
||||||
98
tests/logs/xld/originals/range-vbox.log.log
Normal file
98
tests/logs/xld/originals/range-vbox.log.log
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
X Lossless Decoder version 20170729 (150.3)
|
||||||
|
|
||||||
|
XLD extraction logfile from 2017-08-01 14:56:16 -0300
|
||||||
|
|
||||||
|
KARA / ジャンピン
|
||||||
|
|
||||||
|
Used drive : VBOX CD-ROM (revision 1.0)
|
||||||
|
Media type : Pressed CD
|
||||||
|
|
||||||
|
Ripper mode : XLD Secure Ripper
|
||||||
|
Disable audio cache : OK for the drive with a cache less than 1375KiB
|
||||||
|
Make use of C2 pointers : NO
|
||||||
|
Read offset correction : 6
|
||||||
|
Max retry count : 20
|
||||||
|
Gap status : Analyzed, Appended
|
||||||
|
|
||||||
|
TOC of the extracted CD
|
||||||
|
Track | Start | Length | Start sector | End sector
|
||||||
|
---------------------------------------------------------
|
||||||
|
1 | 00:00:00 | 03:00:27 | 0 | 13526
|
||||||
|
2 | 03:00:27 | 03:32:48 | 13527 | 29474
|
||||||
|
3 | 06:33:00 | 02:59:05 | 29475 | 42904
|
||||||
|
|
||||||
|
AccurateRip Summary (DiscID: 00014f93-0004617c-1e023c03)
|
||||||
|
Track 01 : OK (v1+v2, confidence 11/11)
|
||||||
|
Track 02 : OK (v1+v2, confidence 9/9)
|
||||||
|
Track 03 : OK (v1+v2, confidence 9/9)
|
||||||
|
->All tracks accurately ripped.
|
||||||
|
|
||||||
|
All Tracks
|
||||||
|
Filename : /Users/dubious/xld rips/01. ジャンピン.flac
|
||||||
|
Album gain : -11.92 dB
|
||||||
|
Peak : 1.000000
|
||||||
|
CRC32 hash (test run) : F55D3134
|
||||||
|
CRC32 hash : F55D3134
|
||||||
|
CRC32 hash (skip zero) : 2154552F
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Jitter error (maybe fixed) : 0
|
||||||
|
Retry sector count : 0
|
||||||
|
Damaged sector count : 0
|
||||||
|
|
||||||
|
Track 01
|
||||||
|
Pre-gap length : 00:02:00
|
||||||
|
|
||||||
|
Track gain : -11.95 dB
|
||||||
|
Peak : 1.000000
|
||||||
|
CRC32 hash (test run) : 0248840B
|
||||||
|
CRC32 hash : 0248840B
|
||||||
|
CRC32 hash (skip zero) : 8DAB64A0
|
||||||
|
AccurateRip v1 signature : AB11CF3F
|
||||||
|
AccurateRip v2 signature : 0021EFA8
|
||||||
|
->Accurately ripped (v1+v2, confidence 5+6/11)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Jitter error (maybe fixed) : 0
|
||||||
|
Retry sector count : 0
|
||||||
|
Damaged sector count : 0
|
||||||
|
|
||||||
|
Track 02
|
||||||
|
|
||||||
|
Track gain : -12.51 dB
|
||||||
|
Peak : 1.000000
|
||||||
|
CRC32 hash (test run) : DB57CD66
|
||||||
|
CRC32 hash : DB57CD66
|
||||||
|
CRC32 hash (skip zero) : 15D163C0
|
||||||
|
AccurateRip v1 signature : D627D9F5
|
||||||
|
AccurateRip v2 signature : 689E1528
|
||||||
|
->Accurately ripped (v1+v2, confidence 3+6/9)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Jitter error (maybe fixed) : 0
|
||||||
|
Retry sector count : 0
|
||||||
|
Damaged sector count : 0
|
||||||
|
|
||||||
|
Track 03
|
||||||
|
|
||||||
|
Track gain : -9.38 dB
|
||||||
|
Peak : 1.000000
|
||||||
|
CRC32 hash (test run) : 07AB8339
|
||||||
|
CRC32 hash : 07AB8339
|
||||||
|
CRC32 hash (skip zero) : 73FCDD4A
|
||||||
|
AccurateRip v1 signature : A61A5EA8
|
||||||
|
AccurateRip v2 signature : 7081171C
|
||||||
|
->Accurately ripped (v1+v2, confidence 4+5/9)
|
||||||
|
Statistics
|
||||||
|
Read error : 0
|
||||||
|
Jitter error (maybe fixed) : 0
|
||||||
|
Retry sector count : 0
|
||||||
|
Damaged sector count : 0
|
||||||
|
|
||||||
|
No errors occurred
|
||||||
|
|
||||||
|
End of status report
|
||||||
|
|
||||||
|
-----BEGIN XLD SIGNATURE-----
|
||||||
|
9NvFdxRPNWm8G8dJyzLLbEkLcpVqzExZwC1NJ6OKyjUQNpvIZZ24MD3aoglPsjyU28tRYNsxO11FjHIvl3E1vavNwxiVZ1gT_RhqPDq
|
||||||
|
-----END XLD SIGNATURE-----
|
||||||
Reference in New Issue
Block a user