From 8a569558dcc64b65672b2177bbccebc899755ff9 Mon Sep 17 00:00:00 2001 From: Dan Hemberger Date: Mon, 21 Feb 2022 02:34:16 -0800 Subject: [PATCH 1/2] Synchronize column ordering between Html\Renderers Fixes #827. The column ordering was reversed in the File renderer compared to the Directory renderer. This made it a bit confusing when jumping between directory and file reports. The File renderer now uses the same column ordering as the Directory renderer. --- .../Html/Renderer/Template/file.html.dist | 4 +- .../Renderer/Template/file_branch.html.dist | 8 +- .../Renderer/Template/file_item.html.dist | 12 +- .../Template/file_item_branch.html.dist | 24 ++-- .../Renderer/Template/method_item.html.dist | 9 +- .../Template/method_item_branch.html.dist | 21 +-- .../BankAccount.php.html | 76 ++++++----- .../source_with_ignore.php.html | 27 ++-- ...with_class_and_anonymous_function.php.html | 21 +-- .../source_without_namespace.php.html | 39 +++--- .../source_without_namespace.php_branch.html | 39 +++--- .../source_without_namespace.php_path.html | 39 +++--- ...with_class_and_anonymous_function.php.html | 21 +-- .../source_without_namespace.php.html | 39 +++--- .../source_without_namespace.php_branch.html | 39 +++--- .../source_without_namespace.php_path.html | 39 +++--- .../BankAccount.php.html | 128 +++++++++--------- .../BankAccount.php_branch.html | 128 +++++++++--------- .../BankAccount.php_path.html | 128 +++++++++--------- 19 files changed, 435 insertions(+), 406 deletions(-) diff --git a/src/Report/Html/Renderer/Template/file.html.dist b/src/Report/Html/Renderer/Template/file.html.dist index 686b8b946..af8631d13 100644 --- a/src/Report/Html/Renderer/Template/file.html.dist +++ b/src/Report/Html/Renderer/Template/file.html.dist @@ -33,9 +33,9 @@   -
Classes and Traits
-
Functions and Methods
Lines
+
Functions and Methods
+
Classes and Traits
diff --git a/src/Report/Html/Renderer/Template/file_branch.html.dist b/src/Report/Html/Renderer/Template/file_branch.html.dist index ecbe62134..8717d7f9a 100644 --- a/src/Report/Html/Renderer/Template/file_branch.html.dist +++ b/src/Report/Html/Renderer/Template/file_branch.html.dist @@ -33,11 +33,11 @@   -
Classes and Traits
-
Functions and Methods
-
Paths
-
Branches
Lines
+
Branches
+
Paths
+
Functions and Methods
+
Classes and Traits
diff --git a/src/Report/Html/Renderer/Template/file_item.html.dist b/src/Report/Html/Renderer/Template/file_item.html.dist index dc754b3c6..335f0ccc6 100644 --- a/src/Report/Html/Renderer/Template/file_item.html.dist +++ b/src/Report/Html/Renderer/Template/file_item.html.dist @@ -1,14 +1,14 @@ {{name}} - {{classes_bar}} -
{{classes_tested_percent}}
-
{{classes_number}}
+ {{lines_bar}} +
{{lines_executed_percent}}
+
{{lines_number}}
{{methods_bar}}
{{methods_tested_percent}}
{{methods_number}}
{{crap}} - {{lines_bar}} -
{{lines_executed_percent}}
-
{{lines_number}}
+ {{classes_bar}} +
{{classes_tested_percent}}
+
{{classes_number}}
diff --git a/src/Report/Html/Renderer/Template/file_item_branch.html.dist b/src/Report/Html/Renderer/Template/file_item_branch.html.dist index d7e479f62..90e25eaac 100644 --- a/src/Report/Html/Renderer/Template/file_item_branch.html.dist +++ b/src/Report/Html/Renderer/Template/file_item_branch.html.dist @@ -1,20 +1,20 @@ {{name}} - {{classes_bar}} -
{{classes_tested_percent}}
-
{{classes_number}}
+ {{lines_bar}} +
{{lines_executed_percent}}
+
{{lines_number}}
+ {{branches_bar}} +
{{branches_executed_percent}}
+
{{branches_number}}
+ {{paths_bar}} +
{{paths_executed_percent}}
+
{{paths_number}}
{{methods_bar}}
{{methods_tested_percent}}
{{methods_number}}
{{crap}} - {{paths_bar}} -
{{paths_executed_percent}}
-
{{paths_number}}
- {{branches_bar}} -
{{branches_executed_percent}}
-
{{branches_number}}
- {{lines_bar}} -
{{lines_executed_percent}}
-
{{lines_number}}
+ {{classes_bar}} +
{{classes_tested_percent}}
+
{{classes_number}}
diff --git a/src/Report/Html/Renderer/Template/method_item.html.dist b/src/Report/Html/Renderer/Template/method_item.html.dist index d8890ed27..c117adc44 100644 --- a/src/Report/Html/Renderer/Template/method_item.html.dist +++ b/src/Report/Html/Renderer/Template/method_item.html.dist @@ -1,11 +1,12 @@ - {{name}} + {{name}} + {{lines_bar}} +
{{lines_executed_percent}}
+
{{lines_number}}
{{methods_bar}}
{{methods_tested_percent}}
{{methods_number}}
{{crap}} - {{lines_bar}} -
{{lines_executed_percent}}
-
{{lines_number}}
+ diff --git a/src/Report/Html/Renderer/Template/method_item_branch.html.dist b/src/Report/Html/Renderer/Template/method_item_branch.html.dist index a6a25f95e..e8cbe0684 100644 --- a/src/Report/Html/Renderer/Template/method_item_branch.html.dist +++ b/src/Report/Html/Renderer/Template/method_item_branch.html.dist @@ -1,17 +1,18 @@ - {{name}} + {{name}} + {{lines_bar}} +
{{lines_executed_percent}}
+
{{lines_number}}
+ {{branches_bar}} +
{{branches_executed_percent}}
+
{{branches_number}}
+ {{paths_bar}} +
{{paths_executed_percent}}
+
{{paths_number}}
{{methods_bar}}
{{methods_tested_percent}}
{{methods_number}}
{{crap}} - {{paths_bar}} -
{{paths_executed_percent}}
-
{{paths_number}}
- {{branches_bar}} -
{{branches_executed_percent}}
-
{{branches_number}}
- {{lines_bar}} -
{{lines_executed_percent}}
-
{{lines_number}}
+ diff --git a/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html b/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html index 05078012d..dec35d424 100644 --- a/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html +++ b/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html @@ -35,22 +35,22 @@   -
Classes and Traits
-
Functions and Methods
Lines
+
Functions and Methods
+
Classes and Traits
Total -
-
- 0.00% covered (danger) +
+
+ 55.56% covered (warning)
-
0.00%
-
0 / 1
+
55.56%
+
5 / 9
75.00% covered (warning) @@ -60,26 +60,26 @@
75.00%
3 / 4
CRAP -
-
- 55.56% covered (warning) +
+
+ 0.00% covered (danger)
-
55.56%
-
5 / 9
+
0.00%
+
0 / 1
BankAccount -
-
- 0.00% covered (danger) +
+
+ 55.56% covered (warning)
-
0.00%
-
0 / 1
+
55.56%
+
5 / 9
75.00% covered (warning) @@ -89,18 +89,18 @@
75.00%
3 / 4
7.19 -
-
- 55.56% covered (warning) +
+
+ 0.00% covered (danger)
-
55.56%
-
5 / 9
+
0.00%
+
0 / 1
-  getBalance +  getBalance
100.00% covered (success) @@ -109,7 +109,6 @@
100.00%
1 / 1
- 1
100.00% covered (success) @@ -118,10 +117,12 @@
100.00%
1 / 1
+ 1 + -  setBalance +  setBalance
0.00% covered (danger) @@ -129,8 +130,7 @@
0.00%
-
0 / 1
- 6 +
0 / 4
0.00% covered (danger) @@ -138,11 +138,13 @@
0.00%
-
0 / 4
+
0 / 1
+ 6 + -  depositMoney +  depositMoney
100.00% covered (success) @@ -150,8 +152,7 @@
100.00%
-
1 / 1
- 1 +
2 / 2
100.00% covered (success) @@ -159,11 +160,13 @@
100.00%
-
2 / 2
+
1 / 1
+ 1 + -  withdrawMoney +  withdrawMoney
100.00% covered (success) @@ -171,8 +174,7 @@
100.00%
-
1 / 1
- 1 +
2 / 2
100.00% covered (success) @@ -180,7 +182,9 @@
100.00%
-
2 / 2
+
1 / 1
+ 1 + diff --git a/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html b/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html index 58f568164..582f8d694 100644 --- a/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html +++ b/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html @@ -35,17 +35,14 @@   -
Classes and Traits
-
Functions and Methods
Lines
+
Functions and Methods
+
Classes and Traits
Total - -
n/a
-
0 / 0
100.00% covered (success) @@ -54,7 +51,6 @@
100.00%
1 / 1
- CRAP
100.00% covered (success) @@ -63,17 +59,22 @@
100.00%
1 / 1
+ CRAP + +
n/a
+
0 / 0
- baz + baz
n/a
0 / 0
- 1
n/a
0 / 0
+ 1 + @@ -91,14 +92,15 @@ -  bar +  bar
n/a
0 / 0
- 1
n/a
0 / 0
+ 1 + @@ -116,14 +118,15 @@ -  foo +  foo
n/a
0 / 0
- 1
n/a
0 / 0
+ 1 + diff --git a/tests/_files/Report/HTML/PHP80AndBelow/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html b/tests/_files/Report/HTML/PHP80AndBelow/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html index df5d7c6e5..3edaf9194 100644 --- a/tests/_files/Report/HTML/PHP80AndBelow/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html +++ b/tests/_files/Report/HTML/PHP80AndBelow/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html @@ -35,9 +35,9 @@   -
Classes and Traits
-
Functions and Methods
Lines
+
Functions and Methods
+
Classes and Traits
@@ -50,7 +50,7 @@
100.00%
-
1 / 1
+
5 / 5
100.00% covered (success) @@ -67,7 +67,7 @@
100.00%
-
5 / 5
+
1 / 1
@@ -79,7 +79,7 @@
100.00%
-
1 / 1
+
5 / 5
100.00% covered (success) @@ -96,11 +96,11 @@
100.00%
-
5 / 5
+
1 / 1
-  runAnonymous +  runAnonymous
100.00% covered (success) @@ -108,8 +108,7 @@
100.00%
-
1 / 1
- 1 +
5 / 5
100.00% covered (success) @@ -117,7 +116,9 @@
100.00%
-
5 / 5
+
1 / 1
+ 1 + diff --git a/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php.html b/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php.html index d82da91c5..80d5208c9 100644 --- a/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php.html +++ b/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php.html @@ -35,19 +35,16 @@   -
Classes and Traits
-
Functions and Methods
-
Paths
-
Branches
Lines
+
Branches
+
Paths
+
Functions and Methods
+
Classes and Traits
Total - -
n/a
-
0 / 0
0.00% covered (danger) @@ -55,8 +52,7 @@
0.00%
-
0 / 1
- CRAP +
0 / 4
0.00% covered (danger) @@ -64,7 +60,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -72,7 +68,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -80,11 +76,15 @@
0.00%
-
0 / 4
+
0 / 1
+ CRAP + +
n/a
+
0 / 0
- foo + foo
0.00% covered (danger) @@ -92,8 +92,7 @@
0.00%
-
0 / 1
- 6 +
0 / 4
0.00% covered (danger) @@ -101,7 +100,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -109,7 +108,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -117,7 +116,9 @@
0.00%
-
0 / 4
+
0 / 1
+ 6 + @@ -128,13 +129,13 @@
n/a
0 / 0
- 0
n/a
0 / 0
n/a
0 / 0
+ 0
n/a
0 / 0
diff --git a/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_branch.html b/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_branch.html index a95fbb002..08cb2f8d4 100644 --- a/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_branch.html +++ b/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_branch.html @@ -35,19 +35,16 @@   -
Classes and Traits
-
Functions and Methods
-
Paths
-
Branches
Lines
+
Branches
+
Paths
+
Functions and Methods
+
Classes and Traits
Total - -
n/a
-
0 / 0
0.00% covered (danger) @@ -55,8 +52,7 @@
0.00%
-
0 / 1
- CRAP +
0 / 4
0.00% covered (danger) @@ -64,7 +60,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -72,7 +68,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -80,11 +76,15 @@
0.00%
-
0 / 4
+
0 / 1
+ CRAP + +
n/a
+
0 / 0
- foo + foo
0.00% covered (danger) @@ -92,8 +92,7 @@
0.00%
-
0 / 1
- 6 +
0 / 4
0.00% covered (danger) @@ -101,7 +100,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -109,7 +108,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -117,7 +116,9 @@
0.00%
-
0 / 4
+
0 / 1
+ 6 + @@ -128,13 +129,13 @@
n/a
0 / 0
- 0
n/a
0 / 0
n/a
0 / 0
+ 0
n/a
0 / 0
diff --git a/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_path.html b/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_path.html index c54d785b3..865d91862 100644 --- a/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_path.html +++ b/tests/_files/Report/HTML/PHP80AndBelow/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_path.html @@ -35,19 +35,16 @@   -
Classes and Traits
-
Functions and Methods
-
Paths
-
Branches
Lines
+
Branches
+
Paths
+
Functions and Methods
+
Classes and Traits
Total - -
n/a
-
0 / 0
0.00% covered (danger) @@ -55,8 +52,7 @@
0.00%
-
0 / 1
- CRAP +
0 / 4
0.00% covered (danger) @@ -64,7 +60,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -72,7 +68,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -80,11 +76,15 @@
0.00%
-
0 / 4
+
0 / 1
+ CRAP + +
n/a
+
0 / 0
- foo + foo
0.00% covered (danger) @@ -92,8 +92,7 @@
0.00%
-
0 / 1
- 6 +
0 / 4
0.00% covered (danger) @@ -101,7 +100,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -109,7 +108,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -117,7 +116,9 @@
0.00%
-
0 / 4
+
0 / 1
+ 6 + @@ -128,13 +129,13 @@
n/a
0 / 0
- 0
n/a
0 / 0
n/a
0 / 0
+ 0
n/a
0 / 0
diff --git a/tests/_files/Report/HTML/PHP81AndUp/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html b/tests/_files/Report/HTML/PHP81AndUp/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html index 3bddd888f..a3fe6539d 100644 --- a/tests/_files/Report/HTML/PHP81AndUp/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html +++ b/tests/_files/Report/HTML/PHP81AndUp/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html @@ -35,9 +35,9 @@   -
Classes and Traits
-
Functions and Methods
Lines
+
Functions and Methods
+
Classes and Traits
@@ -50,7 +50,7 @@
100.00%
-
1 / 1
+
5 / 5
100.00% covered (success) @@ -67,7 +67,7 @@
100.00%
-
5 / 5
+
1 / 1
@@ -79,7 +79,7 @@
100.00%
-
1 / 1
+
5 / 5
100.00% covered (success) @@ -96,11 +96,11 @@
100.00%
-
5 / 5
+
1 / 1
-  runAnonymous +  runAnonymous
100.00% covered (success) @@ -108,8 +108,7 @@
100.00%
-
1 / 1
- 1 +
5 / 5
100.00% covered (success) @@ -117,7 +116,9 @@
100.00%
-
5 / 5
+
1 / 1
+ 1 + diff --git a/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php.html b/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php.html index aee66088a..bb36492ce 100644 --- a/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php.html +++ b/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php.html @@ -35,19 +35,16 @@   -
Classes and Traits
-
Functions and Methods
-
Paths
-
Branches
Lines
+
Branches
+
Paths
+
Functions and Methods
+
Classes and Traits
Total - -
n/a
-
0 / 0
0.00% covered (danger) @@ -55,8 +52,7 @@
0.00%
-
0 / 1
- CRAP +
0 / 4
0.00% covered (danger) @@ -64,7 +60,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -72,7 +68,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -80,11 +76,15 @@
0.00%
-
0 / 4
+
0 / 1
+ CRAP + +
n/a
+
0 / 0
- foo + foo
0.00% covered (danger) @@ -92,8 +92,7 @@
0.00%
-
0 / 1
- 6 +
0 / 4
0.00% covered (danger) @@ -101,7 +100,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -109,7 +108,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -117,7 +116,9 @@
0.00%
-
0 / 4
+
0 / 1
+ 6 + @@ -128,13 +129,13 @@
n/a
0 / 0
- 0
n/a
0 / 0
n/a
0 / 0
+ 0
n/a
0 / 0
diff --git a/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_branch.html b/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_branch.html index 8368e45c0..555cd4b26 100644 --- a/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_branch.html +++ b/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_branch.html @@ -35,19 +35,16 @@   -
Classes and Traits
-
Functions and Methods
-
Paths
-
Branches
Lines
+
Branches
+
Paths
+
Functions and Methods
+
Classes and Traits
Total - -
n/a
-
0 / 0
0.00% covered (danger) @@ -55,8 +52,7 @@
0.00%
-
0 / 1
- CRAP +
0 / 4
0.00% covered (danger) @@ -64,7 +60,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -72,7 +68,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -80,11 +76,15 @@
0.00%
-
0 / 4
+
0 / 1
+ CRAP + +
n/a
+
0 / 0
- foo + foo
0.00% covered (danger) @@ -92,8 +92,7 @@
0.00%
-
0 / 1
- 6 +
0 / 4
0.00% covered (danger) @@ -101,7 +100,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -109,7 +108,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -117,7 +116,9 @@
0.00%
-
0 / 4
+
0 / 1
+ 6 + @@ -128,13 +129,13 @@
n/a
0 / 0
- 0
n/a
0 / 0
n/a
0 / 0
+ 0
n/a
0 / 0
diff --git a/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_path.html b/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_path.html index 543f5109d..44dbdb6fe 100644 --- a/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_path.html +++ b/tests/_files/Report/HTML/PHP81AndUp/PathCoverageForSourceWithoutNamespace/source_without_namespace.php_path.html @@ -35,19 +35,16 @@   -
Classes and Traits
-
Functions and Methods
-
Paths
-
Branches
Lines
+
Branches
+
Paths
+
Functions and Methods
+
Classes and Traits
Total - -
n/a
-
0 / 0
0.00% covered (danger) @@ -55,8 +52,7 @@
0.00%
-
0 / 1
- CRAP +
0 / 4
0.00% covered (danger) @@ -64,7 +60,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -72,7 +68,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -80,11 +76,15 @@
0.00%
-
0 / 4
+
0 / 1
+ CRAP + +
n/a
+
0 / 0
- foo + foo
0.00% covered (danger) @@ -92,8 +92,7 @@
0.00%
-
0 / 1
- 6 +
0 / 4
0.00% covered (danger) @@ -101,7 +100,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -109,7 +108,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -117,7 +116,9 @@
0.00%
-
0 / 4
+
0 / 1
+ 6 + @@ -128,13 +129,13 @@
n/a
0 / 0
- 0
n/a
0 / 0
n/a
0 / 0
+ 0
n/a
0 / 0
diff --git a/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php.html b/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php.html index 60f633a9b..eef1ced72 100644 --- a/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php.html +++ b/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php.html @@ -35,33 +35,32 @@   -
Classes and Traits
-
Functions and Methods
-
Paths
-
Branches
Lines
+
Branches
+
Paths
+
Functions and Methods
+
Classes and Traits
Total -
-
- 0.00% covered (danger) +
+
+ 55.56% covered (warning)
-
0.00%
-
0 / 1
-
-
- 75.00% covered (warning) +
55.56%
+
5 / 9
+
+
+ 42.86% covered (danger)
-
75.00%
-
3 / 4
- CRAP +
42.86%
+
3 / 7
60.00% covered (warning) @@ -70,26 +69,15 @@
60.00%
3 / 5
-
-
- 42.86% covered (danger) -
-
- -
42.86%
-
3 / 7
-
- 55.56% covered (warning) +
+ 75.00% covered (warning)
-
55.56%
-
5 / 9
- - - - BankAccount +
75.00%
+
3 / 4
+ CRAP
0.00% covered (danger) @@ -98,15 +86,26 @@
0.00%
0 / 1
+ + + + BankAccount
-
- 75.00% covered (warning) +
+ 55.56% covered (warning)
-
75.00%
-
3 / 4
- 6.60 +
55.56%
+
5 / 9
+
+
+ 42.86% covered (danger) +
+
+ +
42.86%
+
3 / 7
60.00% covered (warning) @@ -115,26 +114,27 @@
60.00%
3 / 5
-
-
- 42.86% covered (danger) +
+
+ 75.00% covered (warning)
-
42.86%
-
3 / 7
-
-
- 55.56% covered (warning) +
75.00%
+
3 / 4
+ 6.60 +
+
+ 0.00% covered (danger)
-
55.56%
-
5 / 9
+
0.00%
+
0 / 1
-  getBalance +  getBalance
100.00% covered (success) @@ -143,7 +143,6 @@
100.00%
1 / 1
- 1
100.00% covered (success) @@ -168,10 +167,12 @@
100.00%
1 / 1
+ 1 + -  setBalance +  setBalance
0.00% covered (danger) @@ -179,8 +180,7 @@
0.00%
-
0 / 1
- 6 +
0 / 4
0.00% covered (danger) @@ -188,7 +188,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -196,7 +196,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -204,11 +204,13 @@
0.00%
-
0 / 4
+
0 / 1
+ 6 + -  depositMoney +  depositMoney
100.00% covered (success) @@ -216,8 +218,7 @@
100.00%
-
1 / 1
- 1 +
2 / 2
100.00% covered (success) @@ -241,11 +242,13 @@
100.00%
-
2 / 2
+
1 / 1
+ 1 + -  withdrawMoney +  withdrawMoney
100.00% covered (success) @@ -253,8 +256,7 @@
100.00%
-
1 / 1
- 1 +
2 / 2
100.00% covered (success) @@ -278,7 +280,9 @@
100.00%
-
2 / 2
+
1 / 1
+ 1 + diff --git a/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php_branch.html b/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php_branch.html index 11336c19e..d1578356a 100644 --- a/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php_branch.html +++ b/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php_branch.html @@ -35,33 +35,32 @@   -
Classes and Traits
-
Functions and Methods
-
Paths
-
Branches
Lines
+
Branches
+
Paths
+
Functions and Methods
+
Classes and Traits
Total -
-
- 0.00% covered (danger) +
+
+ 55.56% covered (warning)
-
0.00%
-
0 / 1
-
-
- 75.00% covered (warning) +
55.56%
+
5 / 9
+
+
+ 42.86% covered (danger)
-
75.00%
-
3 / 4
- CRAP +
42.86%
+
3 / 7
60.00% covered (warning) @@ -70,26 +69,15 @@
60.00%
3 / 5
-
-
- 42.86% covered (danger) -
-
- -
42.86%
-
3 / 7
-
- 55.56% covered (warning) +
+ 75.00% covered (warning)
-
55.56%
-
5 / 9
- - - - BankAccount +
75.00%
+
3 / 4
+ CRAP
0.00% covered (danger) @@ -98,15 +86,26 @@
0.00%
0 / 1
+ + + + BankAccount
-
- 75.00% covered (warning) +
+ 55.56% covered (warning)
-
75.00%
-
3 / 4
- 6.60 +
55.56%
+
5 / 9
+
+
+ 42.86% covered (danger) +
+
+ +
42.86%
+
3 / 7
60.00% covered (warning) @@ -115,26 +114,27 @@
60.00%
3 / 5
-
-
- 42.86% covered (danger) +
+
+ 75.00% covered (warning)
-
42.86%
-
3 / 7
-
-
- 55.56% covered (warning) +
75.00%
+
3 / 4
+ 6.60 +
+
+ 0.00% covered (danger)
-
55.56%
-
5 / 9
+
0.00%
+
0 / 1
-  getBalance +  getBalance
100.00% covered (success) @@ -143,7 +143,6 @@
100.00%
1 / 1
- 1
100.00% covered (success) @@ -168,10 +167,12 @@
100.00%
1 / 1
+ 1 + -  setBalance +  setBalance
0.00% covered (danger) @@ -179,8 +180,7 @@
0.00%
-
0 / 1
- 6 +
0 / 4
0.00% covered (danger) @@ -188,7 +188,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -196,7 +196,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -204,11 +204,13 @@
0.00%
-
0 / 4
+
0 / 1
+ 6 + -  depositMoney +  depositMoney
100.00% covered (success) @@ -216,8 +218,7 @@
100.00%
-
1 / 1
- 1 +
2 / 2
100.00% covered (success) @@ -241,11 +242,13 @@
100.00%
-
2 / 2
+
1 / 1
+ 1 + -  withdrawMoney +  withdrawMoney
100.00% covered (success) @@ -253,8 +256,7 @@
100.00%
-
1 / 1
- 1 +
2 / 2
100.00% covered (success) @@ -278,7 +280,9 @@
100.00%
-
2 / 2
+
1 / 1
+ 1 + diff --git a/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php_path.html b/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php_path.html index 681005e0e..e2de7f125 100644 --- a/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php_path.html +++ b/tests/_files/Report/HTML/PathCoverageForBankAccount/BankAccount.php_path.html @@ -35,33 +35,32 @@   -
Classes and Traits
-
Functions and Methods
-
Paths
-
Branches
Lines
+
Branches
+
Paths
+
Functions and Methods
+
Classes and Traits
Total -
-
- 0.00% covered (danger) +
+
+ 55.56% covered (warning)
-
0.00%
-
0 / 1
-
-
- 75.00% covered (warning) +
55.56%
+
5 / 9
+
+
+ 42.86% covered (danger)
-
75.00%
-
3 / 4
- CRAP +
42.86%
+
3 / 7
60.00% covered (warning) @@ -70,26 +69,15 @@
60.00%
3 / 5
-
-
- 42.86% covered (danger) -
-
- -
42.86%
-
3 / 7
-
- 55.56% covered (warning) +
+ 75.00% covered (warning)
-
55.56%
-
5 / 9
- - - - BankAccount +
75.00%
+
3 / 4
+ CRAP
0.00% covered (danger) @@ -98,15 +86,26 @@
0.00%
0 / 1
+ + + + BankAccount
-
- 75.00% covered (warning) +
+ 55.56% covered (warning)
-
75.00%
-
3 / 4
- 6.60 +
55.56%
+
5 / 9
+
+
+ 42.86% covered (danger) +
+
+ +
42.86%
+
3 / 7
60.00% covered (warning) @@ -115,26 +114,27 @@
60.00%
3 / 5
-
-
- 42.86% covered (danger) +
+
+ 75.00% covered (warning)
-
42.86%
-
3 / 7
-
-
- 55.56% covered (warning) +
75.00%
+
3 / 4
+ 6.60 +
+
+ 0.00% covered (danger)
-
55.56%
-
5 / 9
+
0.00%
+
0 / 1
-  getBalance +  getBalance
100.00% covered (success) @@ -143,7 +143,6 @@
100.00%
1 / 1
- 1
100.00% covered (success) @@ -168,10 +167,12 @@
100.00%
1 / 1
+ 1 + -  setBalance +  setBalance
0.00% covered (danger) @@ -179,8 +180,7 @@
0.00%
-
0 / 1
- 6 +
0 / 4
0.00% covered (danger) @@ -188,7 +188,7 @@
0.00%
-
0 / 2
+
0 / 4
0.00% covered (danger) @@ -196,7 +196,7 @@
0.00%
-
0 / 4
+
0 / 2
0.00% covered (danger) @@ -204,11 +204,13 @@
0.00%
-
0 / 4
+
0 / 1
+ 6 + -  depositMoney +  depositMoney
100.00% covered (success) @@ -216,8 +218,7 @@
100.00%
-
1 / 1
- 1 +
2 / 2
100.00% covered (success) @@ -241,11 +242,13 @@
100.00%
-
2 / 2
+
1 / 1
+ 1 + -  withdrawMoney +  withdrawMoney
100.00% covered (success) @@ -253,8 +256,7 @@
100.00%
-
1 / 1
- 1 +
2 / 2
100.00% covered (success) @@ -278,7 +280,9 @@
100.00%
-
2 / 2
+
1 / 1
+ 1 + From 75a0f913c9d4dfc84d3ee0ab83faffdcc9779646 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Mon, 21 Feb 2022 13:32:08 +0100 Subject: [PATCH 2/2] Fix WS issue --- src/StaticAnalysis/CachingFileAnalyser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/StaticAnalysis/CachingFileAnalyser.php b/src/StaticAnalysis/CachingFileAnalyser.php index 5a3986a00..7ca794310 100644 --- a/src/StaticAnalysis/CachingFileAnalyser.php +++ b/src/StaticAnalysis/CachingFileAnalyser.php @@ -137,9 +137,7 @@ private function read(string $filename) } return unserialize( - file_get_contents( - $cacheFile - ), + file_get_contents($cacheFile), ['allowed_classes' => false] ); }