Skip to content

Commit 431d487

Browse files
Reorganize
1 parent 4443682 commit 431d487

22 files changed

+18
-18
lines changed
File renamed without changes.

tests/tests/Report/CoberturaTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function testLineCoverageForBankAccountTest(): void
2020
$cobertura = new Cobertura;
2121

2222
$this->assertStringMatchesFormatFile(
23-
TEST_FILES_PATH . 'BankAccount-cobertura-line.xml',
23+
TEST_FILES_PATH . 'Report/Cobertura/BankAccount-line.xml',
2424
$cobertura->process($this->getLineCoverageForBankAccount(), null),
2525
);
2626
}
@@ -30,7 +30,7 @@ public function testPathCoverageForBankAccountTest(): void
3030
$cobertura = new Cobertura;
3131

3232
$this->assertStringMatchesFormatFile(
33-
TEST_FILES_PATH . 'BankAccount-cobertura-path.xml',
33+
TEST_FILES_PATH . 'Report/Cobertura/BankAccount-path.xml',
3434
$cobertura->process($this->getPathCoverageForBankAccount(), null),
3535
);
3636
}
@@ -40,7 +40,7 @@ public function testCoberturaForFileWithIgnoredLines(): void
4040
$cobertura = new Cobertura;
4141

4242
$this->assertStringMatchesFormatFile(
43-
TEST_FILES_PATH . 'ignored-lines-cobertura.xml',
43+
TEST_FILES_PATH . 'Report/Cobertura/ignored-lines.xml',
4444
$cobertura->process($this->getCoverageForFileWithIgnoredLines()),
4545
);
4646
}
@@ -50,7 +50,7 @@ public function testCoberturaForClassWithAnonymousFunction(): void
5050
$cobertura = new Cobertura;
5151

5252
$this->assertStringMatchesFormatFile(
53-
TEST_FILES_PATH . 'class-with-anonymous-function-cobertura.xml',
53+
TEST_FILES_PATH . 'Report/Cobertura/class-with-anonymous-function.xml',
5454
$cobertura->process($this->getCoverageForClassWithAnonymousFunction()),
5555
);
5656
}
@@ -60,7 +60,7 @@ public function testCoberturaForClassAndOutsideFunction(): void
6060
$cobertura = new Cobertura;
6161

6262
$this->assertStringMatchesFormatFile(
63-
TEST_FILES_PATH . 'class-with-outside-function-cobertura.xml',
63+
TEST_FILES_PATH . 'Report/Cobertura/class-with-outside-function.xml',
6464
$cobertura->process($this->getCoverageForClassWithOutsideFunction()),
6565
);
6666
}

tests/tests/Report/Crap4jTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function testForBankAccountTest(): void
2020
$crap4j = new Crap4j;
2121

2222
$this->assertStringMatchesFormatFile(
23-
TEST_FILES_PATH . 'BankAccount-crap4j.xml',
23+
TEST_FILES_PATH . 'Report/Crap4j/BankAccount.xml',
2424
$crap4j->process($this->getLineCoverageForBankAccount(), null, 'BankAccount'),
2525
);
2626
}
@@ -30,7 +30,7 @@ public function testForFileWithIgnoredLines(): void
3030
$crap4j = new Crap4j;
3131

3232
$this->assertStringMatchesFormatFile(
33-
TEST_FILES_PATH . 'ignored-lines-crap4j.xml',
33+
TEST_FILES_PATH . 'Report/Crap4j/ignored-lines.xml',
3434
$crap4j->process($this->getCoverageForFileWithIgnoredLines(), null, 'CoverageForFileWithIgnoredLines'),
3535
);
3636
}
@@ -40,7 +40,7 @@ public function testForClassWithAnonymousFunction(): void
4040
$crap4j = new Crap4j;
4141

4242
$this->assertStringMatchesFormatFile(
43-
TEST_FILES_PATH . 'class-with-anonymous-function-crap4j.xml',
43+
TEST_FILES_PATH . 'Report/Crap4j/class-with-anonymous-function.xml',
4444
$crap4j->process($this->getCoverageForClassWithAnonymousFunction(), null, 'CoverageForClassWithAnonymousFunction'),
4545
);
4646
}

tests/tests/Report/OpenCloverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private function assertAndValidate(string $expectationFile, string $cloverXml):
7575
$document = new DOMDocument;
7676
$document->loadXML($cloverXml);
7777

78-
if (!$document->schemaValidate(__DIR__ . '/../../_files/clover.xsd')) {
78+
if (!$document->schemaValidate(__DIR__ . '/../../_files/Report/OpenClover/clover.xsd')) {
7979
$buffer = 'Generated XML document does not validate against Clover schema:' . PHP_EOL . PHP_EOL;
8080

8181
foreach (libxml_get_errors() as $error) {

tests/tests/Report/TextTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testLineCoverageForBankAccountTest(): void
2222
$text = new Text(Thresholds::default(), false, false);
2323

2424
$this->assertStringMatchesFormatFile(
25-
TEST_FILES_PATH . 'BankAccount-text-line.txt',
25+
TEST_FILES_PATH . 'Report/Text/BankAccount-line.txt',
2626
str_replace(PHP_EOL, "\n", $text->process($this->getLineCoverageForBankAccount())),
2727
);
2828
}
@@ -32,7 +32,7 @@ public function testPathCoverageForBankAccountTest(): void
3232
$text = new Text(Thresholds::default(), false, false);
3333

3434
$this->assertStringMatchesFormatFile(
35-
TEST_FILES_PATH . 'BankAccount-text-path.txt',
35+
TEST_FILES_PATH . 'Report/Text/BankAccount-path.txt',
3636
str_replace(PHP_EOL, "\n", $text->process($this->getPathCoverageForBankAccount())),
3737
);
3838
}
@@ -42,7 +42,7 @@ public function testTextOnlySummaryForBankAccountTest(): void
4242
$text = new Text(Thresholds::default(), false, true);
4343

4444
$this->assertStringMatchesFormatFile(
45-
TEST_FILES_PATH . 'BankAccount-text-summary.txt',
45+
TEST_FILES_PATH . 'Report/Text/BankAccount-summary.txt',
4646
str_replace(PHP_EOL, "\n", $text->process($this->getLineCoverageForBankAccount())),
4747
);
4848
}
@@ -52,7 +52,7 @@ public function testTextForNamespacedBankAccountTest(): void
5252
$text = new Text(Thresholds::default(), true, false);
5353

5454
$this->assertStringMatchesFormatFile(
55-
TEST_FILES_PATH . 'NamespacedBankAccount-text.txt',
55+
TEST_FILES_PATH . 'Report/Text/NamespacedBankAccount.txt',
5656
str_replace(PHP_EOL, "\n", $text->process($this->getLineCoverageForNamespacedBankAccount())),
5757
);
5858
}
@@ -62,7 +62,7 @@ public function testTextForNamespacedBankAccountTestWhenColorsAreEnabled(): void
6262
$text = new Text(Thresholds::default(), true, false);
6363

6464
$this->assertStringMatchesFormatFile(
65-
TEST_FILES_PATH . 'NamespacedBankAccount-text-with-colors.txt',
65+
TEST_FILES_PATH . 'Report/Text/NamespacedBankAccount-colors.txt',
6666
str_replace(PHP_EOL, "\n", $text->process($this->getLineCoverageForNamespacedBankAccount(), true)),
6767
);
6868
}
@@ -72,7 +72,7 @@ public function testTextForFileWithIgnoredLines(): void
7272
$text = new Text(Thresholds::default(), false, false);
7373

7474
$this->assertStringMatchesFormatFile(
75-
TEST_FILES_PATH . 'ignored-lines-text.txt',
75+
TEST_FILES_PATH . 'Report/Text/ignored-lines.txt',
7676
str_replace(PHP_EOL, "\n", $text->process($this->getCoverageForFileWithIgnoredLines())),
7777
);
7878
}
@@ -82,7 +82,7 @@ public function testTextForClassWithAnonymousFunction(): void
8282
$text = new Text(Thresholds::default(), false, false);
8383

8484
$this->assertStringMatchesFormatFile(
85-
TEST_FILES_PATH . 'class-with-anonymous-function-text.txt',
85+
TEST_FILES_PATH . 'Report/Text/class-with-anonymous-function.txt',
8686
str_replace(PHP_EOL, "\n", $text->process($this->getCoverageForClassWithAnonymousFunction())),
8787
);
8888
}
@@ -92,7 +92,7 @@ public function testUncoveredFilesAreIncludedWhenConfiguredTest(): void
9292
$text = new Text(Thresholds::default(), false, false);
9393

9494
$this->assertStringMatchesFormatFile(
95-
TEST_FILES_PATH . 'BankAccountWithUncovered-text-line.txt',
95+
TEST_FILES_PATH . 'Report/Text/BankAccountWithUncovered-line.txt',
9696
str_replace(PHP_EOL, "\n", $text->process($this->getCoverageForFilesWithUncoveredIncluded())),
9797
);
9898
}
@@ -102,7 +102,7 @@ public function testUncoveredFilesAreExcludedWhenConfiguredTest(): void
102102
$text = new Text(Thresholds::default(), false, false);
103103

104104
$this->assertStringMatchesFormatFile(
105-
TEST_FILES_PATH . 'BankAccountWithoutUncovered-text-line.txt',
105+
TEST_FILES_PATH . 'Report/Text/BankAccountWithoutUncovered-line.txt',
106106
str_replace(PHP_EOL, "\n", $text->process($this->getCoverageForFilesWithUncoveredExcluded())),
107107
);
108108
}

0 commit comments

Comments
 (0)