Skip to content

Commit 7ea8837

Browse files
Reorganize
1 parent b78c110 commit 7ea8837

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
@@ -24,7 +24,7 @@ public function testLineCoverageForBankAccountTest(): void
2424
$text = new Text(Thresholds::default(), false, false);
2525

2626
$this->assertStringMatchesFormatFile(
27-
TEST_FILES_PATH . 'BankAccount-text-line.txt',
27+
TEST_FILES_PATH . 'Report/Text/BankAccount-line.txt',
2828
str_replace(PHP_EOL, "\n", $text->process($this->getLineCoverageForBankAccount())),
2929
);
3030
}
@@ -34,7 +34,7 @@ public function testPathCoverageForBankAccountTest(): void
3434
$text = new Text(Thresholds::default(), false, false);
3535

3636
$this->assertStringMatchesFormatFile(
37-
TEST_FILES_PATH . 'BankAccount-text-path.txt',
37+
TEST_FILES_PATH . 'Report/Text/BankAccount-path.txt',
3838
str_replace(PHP_EOL, "\n", $text->process($this->getPathCoverageForBankAccount())),
3939
);
4040
}
@@ -44,7 +44,7 @@ public function testTextOnlySummaryForBankAccountTest(): void
4444
$text = new Text(Thresholds::default(), false, true);
4545

4646
$this->assertStringMatchesFormatFile(
47-
TEST_FILES_PATH . 'BankAccount-text-summary.txt',
47+
TEST_FILES_PATH . 'Report/Text/BankAccount-summary.txt',
4848
str_replace(PHP_EOL, "\n", $text->process($this->getLineCoverageForBankAccount())),
4949
);
5050
}
@@ -54,7 +54,7 @@ public function testTextForNamespacedBankAccountTest(): void
5454
$text = new Text(Thresholds::default(), true, false);
5555

5656
$this->assertStringMatchesFormatFile(
57-
TEST_FILES_PATH . 'NamespacedBankAccount-text.txt',
57+
TEST_FILES_PATH . 'Report/Text/NamespacedBankAccount.txt',
5858
str_replace(PHP_EOL, "\n", $text->process($this->getLineCoverageForNamespacedBankAccount())),
5959
);
6060
}
@@ -64,7 +64,7 @@ public function testTextForNamespacedBankAccountTestWhenColorsAreEnabled(): void
6464
$text = new Text(Thresholds::default(), true, false);
6565

6666
$this->assertStringMatchesFormatFile(
67-
TEST_FILES_PATH . 'NamespacedBankAccount-text-with-colors.txt',
67+
TEST_FILES_PATH . 'Report/Text/NamespacedBankAccount-colors.txt',
6868
str_replace(PHP_EOL, "\n", $text->process($this->getLineCoverageForNamespacedBankAccount(), true)),
6969
);
7070
}
@@ -74,7 +74,7 @@ public function testTextForFileWithIgnoredLines(): void
7474
$text = new Text(Thresholds::default(), false, false);
7575

7676
$this->assertStringMatchesFormatFile(
77-
TEST_FILES_PATH . 'ignored-lines-text.txt',
77+
TEST_FILES_PATH . 'Report/Text/ignored-lines.txt',
7878
str_replace(PHP_EOL, "\n", $text->process($this->getCoverageForFileWithIgnoredLines())),
7979
);
8080
}
@@ -84,7 +84,7 @@ public function testTextForClassWithAnonymousFunction(): void
8484
$text = new Text(Thresholds::default(), false, false);
8585

8686
$this->assertStringMatchesFormatFile(
87-
TEST_FILES_PATH . 'class-with-anonymous-function-text.txt',
87+
TEST_FILES_PATH . 'Report/Text/class-with-anonymous-function.txt',
8888
str_replace(PHP_EOL, "\n", $text->process($this->getCoverageForClassWithAnonymousFunction())),
8989
);
9090
}
@@ -94,7 +94,7 @@ public function testUncoveredFilesAreIncludedWhenConfiguredTest(): void
9494
$text = new Text(Thresholds::default(), false, false);
9595

9696
$this->assertStringMatchesFormatFile(
97-
TEST_FILES_PATH . 'BankAccountWithUncovered-text-line.txt',
97+
TEST_FILES_PATH . 'Report/Text/BankAccountWithUncovered-line.txt',
9898
str_replace(PHP_EOL, "\n", $text->process($this->getCoverageForFilesWithUncoveredIncluded())),
9999
);
100100
}
@@ -104,7 +104,7 @@ public function testUncoveredFilesAreExcludedWhenConfiguredTest(): void
104104
$text = new Text(Thresholds::default(), false, false);
105105

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

0 commit comments

Comments
 (0)